国产 无码 综合区,色欲AV无码国产永久播放,无码天堂亚洲国产AV,国产日韩欧美女同一区二区

Android Studio Flamingo編譯項(xiàng)目問題記錄

這篇具有很好參考價(jià)值的文章主要介紹了Android Studio Flamingo編譯項(xiàng)目問題記錄。希望對大家有所幫助。如果存在錯(cuò)誤或未考慮完全的地方,請大家不吝賜教,您也可以點(diǎn)擊"舉報(bào)違法"按鈕提交疑問。

系統(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 Studio Flamingo編譯項(xiàng)目問題記錄,android studio,android,ide

  • 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

Android Studio Flamingo編譯項(xiàng)目問題記錄,android studio,android,ide

?文章來源地址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)!

本文來自互聯(lián)網(wǎng)用戶投稿,該文觀點(diǎn)僅代表作者本人,不代表本站立場。本站僅提供信息存儲(chǔ)空間服務(wù),不擁有所有權(quán),不承擔(dān)相關(guān)法律責(zé)任。如若轉(zhuǎn)載,請注明出處: 如若內(nèi)容造成侵權(quán)/違法違規(guī)/事實(shí)不符,請點(diǎn)擊違法舉報(bào)進(jìn)行投訴反饋,一經(jīng)查實(shí),立即刪除!

領(lǐng)支付寶紅包贊助服務(wù)器費(fèi)用

相關(guān)文章

  • Android Studio 升級 Flamingo 后 Gradle 又掛了

    1.Gradle 7.2 才支持 Java 17 Unsupported Java. Your build is currently configured to use Java 17.0.6 and Gradle 5.0. Possible solution: ?- Upgrade Gradle wrapper to 7.2 version and re-import the project ? 2.Android plugin 7.1 才支持 Gradle 7.2 Unable to find method \\\'\\\'org.gradle.api.file.DirectoryProperty org.gradle.api.file.ProjectLayout.directoryProp

    2024年02月02日
    瀏覽(21)
  • Android Studio Flamingo新版本Logcat使用介紹

    Android Studio Flamingo新版本Logcat使用介紹

    Android Studio更新后Logcat日志樣式大變樣了,和之前版本差別很大 下面就介紹下新版本的Logcat: 可以選擇切換當(dāng)前打印日志的設(shè)備 和之前版本最大的區(qū)別就是這個(gè)日志過濾了,可以根據(jù)不同的過濾條件進(jìn)行日志過濾 1、按包名過濾 2、按日志等級過濾 3、按Tag過濾 4、按過

    2024年02月08日
    瀏覽(25)
  • Android Studio Flamingo | 2022.2.1 Patch 1(火烈鳥版本)

    Android Studio Flamingo | 2022.2.1 Patch 1(火烈鳥版本)

    Android Studio Flamingo | 2022.2.1 Patch 1 Build #AI-222.4459.24.2221.9971841, built on April 20, 2023 Runtime version: 17.0.6+0-b2043.56-9586694 amd64 VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o. Windows 11 10.0 GC: G1 Young Generation, G1 Old Generation Memory: 1280M Cores: 6 Registry: ? ? external.system.auto.import.disabled=true ? ? ide.text.edit

    2024年02月06日
    瀏覽(15)
  • Android Studio Flamingo缺失Legacy Layout Inspector功能,無法查看當(dāng)前Activity解決方案

    Android Studio Flamingo缺失Legacy Layout Inspector功能,無法查看當(dāng)前Activity解決方案

    Android Studio 從4.0升級到Android Studio Flamingo之后,發(fā)現(xiàn)無法使用Layout Inspector功能來查看當(dāng)前的Activity。 Android Studio Flamingo版本的Layout Inspector只提供了查看頁面布局的功能,沒有如下所示的選擇框: 解決方案: 在File–Setting–Plugins搜索Legacy Layout Inspector插件,安裝重啟Android Stu

    2024年02月10日
    瀏覽(22)
  • android gradle編譯問題記錄

    有時(shí)候即便配置了國內(nèi)鏡像下載gradle也是慢的一批,可以手動(dòng)下載gradle文件配置到項(xiàng)目中,比如我下載了一個(gè)新項(xiàng)目,它的gradle版本是gradle-4.1-all,進(jìn)入項(xiàng)目時(shí)它會(huì)開始下載gradle,此時(shí)gradle目錄中會(huì)創(chuàng)建gradle-4.1-all目錄,我的完整路徑是 里面有一個(gè)像亂碼一樣的文件夾,下載的

    2024年01月16日
    瀏覽(17)
  • 【錯(cuò)誤記錄】Android Studio 編譯報(bào)錯(cuò) ( Could not resolve com.android.tools.build:gradle:7.4.2. )

    【錯(cuò)誤記錄】Android Studio 編譯報(bào)錯(cuò) ( Could not resolve com.android.tools.build:gradle:7.4.2. )

    在 Mac 中安裝了 Android Studio , 首次創(chuàng)建應(yīng)用運(yùn)行時(shí) , 報(bào)如下錯(cuò)誤 : 報(bào)錯(cuò)信息中有提示 : Doesn’t say anything about its target Java version (required compatibility with Java 8) A problem occurred configuring root project ‘DataBinding’. Could not resolve all files for configuration ‘:classpath’. Could not resolve com.android.

    2024年02月08日
    瀏覽(98)
  • 【錯(cuò)誤記錄】Android 編譯報(bào)錯(cuò) ( The project uses Gradle version which is incompatible with Android Studio )

    【錯(cuò)誤記錄】Android 編譯報(bào)錯(cuò) ( The project uses Gradle version which is incompatible with Android Studio )

    報(bào)錯(cuò)信息 : 使用的 ijkplayer 版本是 0.8.8 版本的 , 這是 2018 年的版本 , 生成的 Android Studio 工程源碼 也是 在 2018 年運(yùn)行的 , 當(dāng)時(shí)使用 的 Android Studio 版本 , Gradle 構(gòu)建工具版本 , Android Gradle 插件版本 , 與當(dāng)前差異很大 ; 上述 構(gòu)建工具 , AS 開發(fā)環(huán)境 , AGP 插件 , 版本對應(yīng)關(guān)系可以參

    2024年02月08日
    瀏覽(23)
  • 記錄解決Android Studio下載gradle超時(shí)問題

    記錄解決Android Studio下載gradle超時(shí)問題

    大三學(xué)生,2023年3月19號晚,首次下載Android Studio2022版本并新建項(xiàng)目,發(fā)現(xiàn)在下載gradle總是連接超時(shí),舍友則沒有這個(gè)問題,用的是同一個(gè)安裝包。 查閱文獻(xiàn)太多,忘記都有哪些了,就不列出來了,都是公開的。 總結(jié):連接不上外網(wǎng)的谷歌導(dǎo)致網(wǎng)絡(luò)超時(shí),通過其他方法下載好

    2024年02月05日
    瀏覽(45)
  • Android問題筆記-Android Studio編譯報(bào)錯(cuò):2 files found with path.....

    Android問題筆記-Android Studio編譯報(bào)錯(cuò):2 files found with path.....

    點(diǎn)擊跳轉(zhuǎn)=Unity3D特效百例 點(diǎn)擊跳轉(zhuǎn)=案例項(xiàng)目實(shí)戰(zhàn)源碼 點(diǎn)擊跳轉(zhuǎn)=游戲腳本-輔助自動(dòng)化 點(diǎn)擊跳轉(zhuǎn)=Android控件全解手冊 點(diǎn)擊跳轉(zhuǎn)=Scratch編程案例 點(diǎn)擊跳轉(zhuǎn)=軟考全系列 專注于 Android/Unity 和各種游戲開發(fā)技巧,以及 各種資源分享 (網(wǎng)站、工具、素材、源碼、游戲等) 有什么需要?dú)g

    2024年02月10日
    瀏覽(24)
  • Android Studio在導(dǎo)入項(xiàng)目后編譯出現(xiàn)java版本錯(cuò)誤解決方法

    Android Studio在導(dǎo)入項(xiàng)目后編譯出現(xiàn)java版本錯(cuò)誤解決方法

    打開新項(xiàng)目時(shí)出現(xiàn)一下錯(cuò)誤: Unsupported Java,Your build is currently configured to use Java 17.0.9 and Gradle 5.6.4. 這說明使用的java版本過高,而 gradle5.6.4對應(yīng)的是java8,最新安裝的編譯器java版本是17 解決方法是為項(xiàng)目配置低版本的JDK,這里選擇jdk版本為1.8的,設(shè)置好路徑(注意文件夾為空

    2024年03月21日
    瀏覽(19)

覺得文章有用就打賞一下文章作者

支付寶掃一掃打賞

博客贊助

微信掃一掃打賞

請作者喝杯咖啡吧~博客贊助

支付寶掃一掃領(lǐng)取紅包,優(yōu)惠每天領(lǐng)

二維碼1

領(lǐng)取紅包

二維碼2

領(lǐng)紅包