AndroidStudio导入项目问题


sdk路径问题

The path D:\Android\SDK does not belong to a directory.Android studio will use

两种解决方法

  1. 点击ok更改Gradle Scripts下的local.properties文件的sdk路径
  2. 直接更改目标项目的上述文件

grade版本问题

  1. 查看...\classTest\classTestFifth\gradle\wrapper的gradle-wrapper.properties看版本号

  2. 下载相应的zip文件到本地C:\Users\Jessica.gradle\wrapper\dists

    http://services.gradle.org/distributions/

  3. .....gradle\wrapper\dists\gradle-6.1.1-all\cfmwm155h49vnt3hynmlrsdst下解压

  4. 删掉目标项目的grade,然后导入即可(最好不要删,自己更改设置即可,不然很多问题)

中文路径问题

Your project path contains non-ASCII characters. This will most likely cause the build to fail on Windows. Please move your project to a different directory. See http://b.android.com/95744 for details. This warning can be disabled by adding the line 'android.overridePathCheck=true' to gradle.properties file in the project directory.
更改到没有中文的路径

IDEA版本问题

This version of the Android Support plugin for IntelliJ IDEA (or Android Studio) cannot open this project, please retry with version 4.2 or newer.
解决方法1
change to

classpath 'com.android.tools.build:gradle:4.0.1'

in file build.Gradle (Project)
解决方法2
更新as


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM