【错误记录】Android Studio 编译报错 ( SDK location not found )
2023-06-13 09:17:54 时间
文章目录
一、报错信息
Android Studio 编译报错 : 首次打开别人的项目 , 经常性的报错 ;
Could not determine the dependencies of task ':app:compileDebugJavaWithJavac'.
> SDK location not found. Define location with an ANDROID_SDK_ROOT environment variable or by setting the sdk.dir path in your project's local properties file at 'D:\002_Project\002_Android_Learn\demo\local.properties'.
二、解决方案
查看 Android Studio 工程根目录中的 local.properties 配置文件 , 查看器 SDK 配置 ;
改配置明显与当前 SDK 配置路径不同 ;
将 SDK 路径修改为如下配置 , 即可编译通过 ;
sdk.dir=D\:\\001_Develop\\001_SDK\\Sdk
( 该错误比较小白 , 仅作记录 )
相关文章
- android onresume函数,Android界面跳转时候onDestroy和onResume的调用顺序
- 加密狗android,Android系统加密狗的设计与实现
- android telephony 原理解析与开发指南_Android逆向pdf
- android toast显示时间,Android Toast自定义显示时间「建议收藏」
- Android preference_android studio preview
- android应用程序_chrome Android
- 【错误记录】Android Studio 的 Flutter 代码界面没有 Logcat 面板
- 【错误记录】Android Studio 的 Flutter 代码界面没有 Logcat 面板 ( 2021年08月28日最新解决方案 )
- 【Android Gradle 插件】build.gradle 中的 android 配置 ( 配置项 | compileSdkVersion 配置 | buildToolsVersion 配置 )
- 【错误记录】Android Studio 编译报错 ( Execution failed for task ‘:APP_MIDI:lintVitalRelease‘. )
- 【错误记录】编译 Android 版本的 ijkplayer 报错 ( You must define ANDROID_NDK before starting. | 下载指定版本 NDK )
- 【错误记录】Android Studio 中编写 Gradle 编译脚本时没有 Groovy 代码提示 ( Cannot find declaration to go to )
- 【错误记录】Android Studio 编译时 lint 检查报错 ( Could not resolve junit:junit:4.+. )
- 【错误记录】Android Studio 编译报错 ( kotlin library {0} was compiled with a newer kotlin compiler and not b )
- 【错误记录】Android Studio 编译报错 ( Execution failed for task ‘:app:kaptDebugKotlin‘. A failure occurred w )
- android自定义Android菜单背景的代码