As Error:Could not determine the class-path for interface com.android.builder.model.AndroidProject.
Posted BandaYung
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了As Error:Could not determine the class-path for interface com.android.builder.model.AndroidProject.相关的知识,希望对你有一定的参考价值。
错误:Error:Could not determine the class-path for interface com.android.builder.model.AndroidProject.
原因: eclipse导出工程的时候gradle版本比较低造成,所以要更改gradle配置
解决:复制以往正常的项目2处配置
1、修改build.gradle(gradle版本号跟android…)
buildscript
repositories
jcenter()
google()
dependencies
classpath 'com.android.tools.build:gradle:3.0.1'
android
compileSdkVersion 26
buildToolsVersion '26.0.3'
......
2、gradle-wrapper.properties
#Tue Dec 26 10:09:46 CST 2017
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\\://services.gradle.org/distributions/gradle-4.1-all.zip
以上是关于As Error:Could not determine the class-path for interface com.android.builder.model.AndroidProject.的主要内容,如果未能解决你的问题,请参考以下文章
CMake Error: Could not find CMAKE_ROOT !!!
Error: could not find java.dll如何解决
Error:Could not find common.jar
scribe 搭建:configure: error: Could not link against !
Error: could not find function ... in R
error: could not read CFBundleIdentifier from Info.plist (null)解决方法之一