Home > Mobile >  Pure command line packaging APK, use aapt2 problem
Pure command line packaging APK, use aapt2 problem

Time:09-27

Pure command line packaging APK, use AAPT2 generated APK, present the following wrong
Error: the resource style/Theme. AppCompat. Light. DarkActionBar (aka com. Example. Myapplication: style/Theme. AppCompat. Light. DarkActionBar) not found.
Analysis, presumably because
AAPT2 do compile resource files, compile the local resource file only,
No compiler needs to rely on the system resources,
For example, usually written in the build. Gradle dependencies in the
Implementation 'com. Android. Support: appcompat - v7:28.0.0'
Implementation 'com. Android. Support. The constraint, the constraint - layout: 1.1.3'

When, please use AAPT2 packaging, how to rely on the above two systems package?

CodePudding user response:

No one? jacking

CodePudding user response:

Have to solve this problem?

CodePudding user response:

To rely on aar decompression, add the corresponding resources on aapt2 command
  • Related