Error: no such property: manifestPlaceholders for class: com.android.build.gradle.managed.ProductFlavor

I use 'gradle-experimental:0.4.0'and I want to use sign for sysk for my project. when I try to build a project with the code that was mentioned in the example here, I get this error:

Error: no such property: manifestPlaceholders for 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 my 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    
        }

A search on the Internet showed nothing. What to do to remove this error?

+4
source share
1 answer

gradle -experimental, TODO manifestPlaceholders , , . https://android.googlesource.com/platform/tools/base/+/6e2ee9ad8a0aeff3231f9937e46cc663aa2a64c5/build-system/gradle-experimental/src/main/groovy/com/android/build/gradle/managed/ProductFlavor.java#97

gradle -experimental , jar- OneSignal AndroidManifest.xml . . 2 OneSignal Eclipse .

.

+3

Source: https://habr.com/ru/post/1627087/


All Articles