系統(tǒng)版本:macOS 13.4
Android Studio Flamingo | 2022.2.1 Patch 2
下載地址:Download Android Studio & App Tools - Android DevelopersAndroid Studio provides app builders with an integrated development environment (IDE) optimized for Android apps. Download Android Studio today.https://developer.android.google.cn/studio
所需插件版本:3.2-8.0,gradle 8.0
更新gradle插件及環(huán)境變量
Mac環(huán)境變量配置
1. 進(jìn)入當(dāng)前用戶的home路徑:cd ~/
2. 創(chuàng)建.bash_profile文件:touch .bash_profile
3. 打開.bash_profile文件:open .bash_profile
4. 使配置文件生效:source .bash_profile
編譯問題
- No matching variant of com.android.tools.build:gradle:8.0.2 was found. The consumer was configured to find a library for use during runtime, compatible with Java 8, packaged as a jar, and its dependencies declared externally, as well as attribute 'org.gradle.plugin.api-version' with value '8.0'
解決方案:將gradle的Java JDK版本修改為11
-
Android Gradle plugin requires Java 17 to run. You are currently using Java 11.?Your current JDK is located in /Library/Java/JavaVirtualMachines/jdk-11.0.2.jdk/Contents/Home
解決方案:下載并選擇Java 17
文章來源:http://www.zghlxwxcb.cn/news/detail-596149.html
?文章來源地址http://www.zghlxwxcb.cn/news/detail-596149.html
到了這里,關(guān)于Android Studio Flamingo編譯項(xiàng)目問題記錄的文章就介紹完了。如果您還想了解更多內(nèi)容,請?jiān)谟疑辖撬阉鱐OY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!