由于以下错误,我的构建失败了
[aapt] res/drawable-xhdpi/splash.png:0: error: Resource entry splash is already defined.
[aapt] res/drawable-xhdpi/splash.9.png:0: Originally defined here.
有什么想法吗?谢谢!
最佳答案
如果您使用 cordova 并重命名现有图像(在我的例子中只有 splash.9.png
存在,但会发生同样的错误,也可能会发生此错误。
在这种情况下,您需要清理项目,使用
./platforms/android/cordova/clean
关于android 构建 splash.9.png 错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18756201/