Error:No such property: manifestPlaceholders for class: com.android.build.gradle.managed.ProductFlavor -
i use 'gradle-experimental:0.4.0'
, want use onesignal sdk project. when try build project code have been mentioned in example here error:
error:no such property: manifestplaceholders class: com.android.build.gradle.managed.productflavor.
code in sample
android { defaultconfig { manifestplaceholders = [manifestapplicationid: "${applicationid}", onesignal_app_id: "bbbbbb-324f-34fd-bed1-df8f05be55ba", onesignal_google_project_number: "11111111"] } }
code in project
model { android { compilesdkversion = 23 buildtoolsversion = "23.0.2" defaultconfig.with { applicationid = "com.myproject.company" manifestplaceholders = [manifestapplicationid: "${applicationid}", onesignal_app_id: "234jfi4-2342-4a23-234-24235436546", onesignal_google_project_number: "111111111"] minsdkversion.apilevel = 16 targetsdkversion.apilevel = 23 versioncode = 3 }
internet search revealed nothing. should remove error?
i looked through source code of gradle-experimental , see todo on manifestplaceholders on latest commit looks isn't support yet. https://android.googlesource.com/platform/tools/base/+/6e2ee9ad8a0aeff3231f9937e46cc663aa2a64c5/build-system/gradle-experimental/src/main/groovy/com/android/build/gradle/managed/productflavor.java#97
if must use gradle-experimental instead of normal release need use jar version of onesignal , add androidmanifest.xml entries manually. see step 2 in onesignal's eclipse setup instructions manifest entries.
thanks.
Comments
Post a Comment