问题更新:关于No resource identifier found for attribute 'compileSdkVersion' in package 'android'

AndroidManifest.xml:1: error: No resource identifier found for attribute 'compileSdkVersion' in package 'android'

AndroidManifest.xml:1: error: No resource identifier found for attribute 'compileSdkVersionCodename' in package 'android'

AndroidManifest.xml:2: error: No resource identifier found for attribute 'appComponentFactory' in package 'android'

问题关键在于compileSdkVersion is 28 ,保证compileSdkVersion 低于28,因为27之前发现过一个bug,所以建议使用26最佳。

当compileSdkVersion低于28的时候,发现会生成如下代码,这是在gradle.build中compileSdkVersion是28导致的

包括出现这样的问题:

apktool not working with latest build tools : AndroidManifest.xml:1: error: No resource identifier found for attribute 'compileSdkVersion' in package 'android'

解决方法:保证compileSdkVersion 低于28,或者升级apktools.jar的版本,目前官网是2.4.1已经解决该问题

猜你喜欢

转载自blog.csdn.net/fanwei4751/article/details/84777790
今日推荐