AAPT: error: unexpected element <profileable> found in <manifest><application>

Viewed 475

AAPT: error: unexpected element <profileable> found in <manifest><application>

According to the document:https://developer.android.com/guide/topics/manifest/profileable-element

Supposed that <profileable> contained in <Application> is legal, but failed in APK packaging stage, aapt abort.

<manifest ...>
    <application ...>
      <profileable android:shell="true" />
    </application>
</manifest>
ext.versions = [
        'compileSdkVersion': 31,
        'buildToolsVersion': '30.0.2',
        'minSdkVersion'    : 29,
        'targetSdkVersion' : 29,
        'kotlin'           : '1.3.50',
    ]
androidGradlePlugin: "com.android.tools.build:gradle:3.5.2"

Updated: problems solved! Thanks @CommonsWare, by updated AGP to 4.0.0 this problem can be solved!

0 Answers
Related