通過分析,新下載的項(xiàng)目沒有project/gradle
目錄,故通過其他項(xiàng)目復(fù)制到當(dāng)前項(xiàng)目,就解決了該問題。
同時也出現(xiàn)了新的問題
Unable to start the daemon process.
The project uses Gradle 4.1 which is incompatible with Java 11 or newer.
原因:gradle版本過低,修改到j(luò)ava1.8即可文章來源:http://www.zghlxwxcb.cn/news/detail-625849.html
查看agp和gradle的版本關(guān)系
https://developer.android.google.cn/studio/releases/gradle-plugin?hl=zh-cn文章來源地址http://www.zghlxwxcb.cn/news/detail-625849.html
到了這里,關(guān)于Android Studio 報錯:Failed to create Jar file xxxxx.jar的文章就介紹完了。如果您還想了解更多內(nèi)容,請?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!