日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問(wèn) 生活随笔!

生活随笔

當(dāng)前位置: 首頁(yè) > 运维知识 > Android >内容正文

Android

【错误记录】Android Studio 编译报错 ( Installed Build Tools revision 31.0.0 is corrupted )

發(fā)布時(shí)間:2025/6/17 Android 32 豆豆
生活随笔 收集整理的這篇文章主要介紹了 【错误记录】Android Studio 编译报错 ( Installed Build Tools revision 31.0.0 is corrupted ) 小編覺(jué)得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.

文章目錄

  • 一、報(bào)錯(cuò)信息
  • 二、解決方案





一、報(bào)錯(cuò)信息



Executing tasks: [:dex_demo:assembleDebug, :app:assembleDebug] in project Y:\002_WorkSpace\001_AS\ClassLoader_DemoAGPBI: {"kind":"warning","text":"Please remove usages of `jcenter()` Maven repository from your build scripts and migrate your build to other Maven repositories.\nThis repository is deprecated and it will be shut down in the future.\nSee http://developer.android.com/r/tools/jcenter-end-of-service for more information.\nCurrently detected usages in: root project 'ClassLoader_Demo', project ':app', project ':dex_demo'","sources":[{}]} Build-tool 31.0.0 is missing DX at Y:\001_DevelopTools\002_Android_SDK\build-tools\31.0.0\dx.bat Build-tool 31.0.0 is missing DX at Y:\001_DevelopTools\002_Android_SDK\build-tools\31.0.0\dx.batFAILURE: Build failed with an exception.* What went wrong: Could not determine the dependencies of task ':dex_demo:compileDebugJavaWithJavac'. > Installed Build Tools revision 31.0.0 is corrupted. Remove and install again using the SDK Manager.* Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.* Get more help at https://help.gradle.orgBUILD FAILED in 33s





二、解決方案



創(chuàng)建 Project 工程時(shí) , 自動(dòng)創(chuàng)建的 Module 其 build.gradle 為 如下屬性 ,

android {compileSdkVersion 30buildToolsVersion "30.0.3" }

創(chuàng)建 Module 時(shí) , 生成的 build.gradle 為 如下屬性 ,

android {compileSdkVersion 30buildToolsVersion "31.0.0" }

將 buildToolsVersion 的版本 , 由 31.0.031.0.031.0.0 修改為 30.0.330.0.330.0.3 即可 ;

android {compileSdkVersion 30//buildToolsVersion "31.0.0"buildToolsVersion "30.0.3" }

修改后 , 編譯完成 ;


備選方案 : 按照

Remove and install again using the SDK Manager.

提示 , 卸載 Build-tool 31.0.0 并重新安裝 ;

先卸載 , 再安裝 ;

總結(jié)

以上是生活随笔為你收集整理的【错误记录】Android Studio 编译报错 ( Installed Build Tools revision 31.0.0 is corrupted )的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問(wèn)題。

如果覺(jué)得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。