Error: Error: Could not determine the class – path for interface com. Android. Builder. Model. The AndroidProject.
Reason: The gradle version was low when Eclipse exported the project, so the gradle configuration should be changed
Solution: Duplicate the normal project 2 configuration
1. Modify Build. gradle (gradle version number and Android {… })
buildscript {
repositories {
jcenter()
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.0.1'
}
}
android {
compileSdkVersion 26
buildToolsVersion '26.0.3'
......
}
2, the 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
div>
Read More:
- How to Fix com.android.builder.internal.aapt.v2.Aapt2Exception: Android resource linking failed
- Caused by: com.android.builder.dexing.DexArchiveBuilderException: Failed to process D:\….\0.jar
- Android studio error Error:Could not Determine java version from ‘9.0.4’
- Default interface methods are only supported starting with Android N (–min-api 24): com.XXXX
- ERROR: Unsupported method: AndroidProject.getVariantNames().
- ERROR Unsupported method AndroidProject.getVariantNames().
- [unity] Android package error java.lang.ClassNotFoundException Did not find class com.unity3d . player.MainActivity
- Android Studio sync build.gradle appears: Failed to resolve: com.android.support:appcompat problem
- Android project error: could not resolve com.android.support .c onstraint:constraint-layout :2.0.2.
- [error record] as compilation error (Android support plugin version is too high | upgrade Android studio to the latest version)
- Error in Cordova project execution command after Android studio upgrade: could not find gradle wrapper within Android SDK
- [springboot] problem failed to determine a suitable driver class
- Failed to determine a suitable driver class
- Failed to determine a suitable driver class error in mybatis
- About Android studio error: (26,13) failed to resolve: com.android.support : appcompat-v7:27. + error
- Failed to resolve: com.android.support:appcompat-v7:25.3.0
- Loading class `com.mysql.jdbc.Driver‘. This is deprecated. The new driver class is `com.mysql.cj.jdb
- Error: (21,13) Java: symbol not found: class order location: interface mapper.ordermapper
- Record once the solution of gradle dependency problem: failed to determine a suitable driver class