You need to use a Theme AppCompat Theme (or descendant) with this activity.
AndroidStudio aapt2 upgrade, polymerization SDK will play mother aggregated and channel package, the synthesis of package, to run the
You need to use a Theme AppCompat Theme (or descendant) with this activity.
Use aapt error, compared with before, is the biggest changes aapt2 aapt packaged into two steps, the first step is to compile resource, the second step is to link resources, generate R files,
Inherit the Activity can run normally, inherit AppCompatActivity is submitted to the errors of the above
Aapt2 two step commands are as follows:
CMD='" % s "compile - dir" % s ", "% s" o' % (aaptPath targetResPath, resourcePath)
CMD='" % s "link" % s "-- - o manifest" % s "Java" % s "-i" % s "- auto - add - overlay - min - SDK - version % s" % s "-- target - SDK - version" % s "version - code" % s "version - name" % s "' %
(aaptPath tempPath +/newoutput. Apk, manifestPath, genPath, androidPath, tempPath + "/resources.zip," game [" minSdkVersion "], game [" targetSdkVersion "], game [" versionCode "], game [" versionName "])
Normal operation of channel package used by AndroidStudio aapt2 generated,
Game female bag using gradle mode, use aapt2 generated, normal operation of the
After use apktool aggregated, but no, the solution polymerization after apk package, advanced topics AppCompat also can be found, the wonder is why is the package of synthetic quote need advanced topic, have a great god has to solve the problem of
CodePudding user response:
Turn to for help you a great god, decompiled polymerization of the SDK