File ‘root/res/drawable-hdpi/ic_green_normal.9.PNG’ uses reserved file or directory name ‘res’.
Android studio 最新版打包 app bundle 报错 File ‘root/res/drawable-hdpi/ic_green_normal.9.PNG’ uses reserved file or directory name ‘res’.
解决方法:把app目录下的build.gradle里的implementation fileTree(dir: ‘libs’, include: [’*.jar’]) 移除就可以了。
之前使用libs本地依赖的就要改为仓库依赖。如:
implementation files(‘libs/ZxingScanner.jar’)
改为
implementation ‘com.journeyapps:zxing-android-embedded:3.6.0’
implementation ‘com.google.zxing:core:3.3.0’