Could not find property 'processManifest' on com.android.build.gradle.internal.api.ApplicationVariantImpl

后端 未结 5 2065
遇见更好的自我
遇见更好的自我 2020-12-15 19:37

I am currently trying to update Android Studio to 1.0.0-RC. This seems to require gradle Android plugin 1.0.0-rc1. After the update, I started having the following error:

5条回答
  •  鱼传尺愫
    2020-12-15 20:20

    According to the documentation for APK splits (http://tools.android.com/tech-docs/new-build-system/user-guide/apk-splits) this method has moved into VariantOutput (available via variant.outputs):

    Deprecation Warning: the current variant API contains some methods that have moved under its outputs. The method are still there, but will fail if there are 2+ outputs. They will be completely removed in 1.0 These are:

    • get/setOutputFile
    • getProcessResources
    • getProcessManifest
    • getPackageApplication/Library
    • getZipAlign

    Additional methods on VariantOutput

    • String getAbiFilter()
    • String getDensityFilter()
    • Task getAssemble()
    • String getName()
    • String getBaseName()
    • String getDirName
    • set/getVersionOverride // optional versionCode override
    • int getVersionCode() // returns either the versionCode override from the output or the versionCode from the variant itself

提交回复
热议问题