Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

android manifestPlaceholders - how to use a boolean

Manifest placeholder i have created looks like this:

manifestPlaceholders = [appDrawerName: "Staging",canExport:"true"]

and i am trying to use it to set the following exported property on an activity:

<activity android:name=".UI.product.ProductDetailsHostActivity"
           android:theme="@style/NoActionBarTheme"
           android:exported="${canExport}"/>

But i get the following error:

enter image description here any ideas on how i can resolve this ? i tried using canExport:true without the quotes but same results.

btw, the first placeholder works fine.

like image 518
j2emanue Avatar asked Nov 15 '25 16:11

j2emanue


1 Answers

You have to supply a boolean value instead of the string in manifestPlaceholders array.

change this

manifestPlaceholders = [appDrawerName: "Staging",canExport:"true"]

to

manifestPlaceholders = [appDrawerName: "Staging",canExport:true]

notice the boolean true instead of string "true"

like image 66
Logesh R Avatar answered Nov 17 '25 09:11

Logesh R



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!