내 친구가 Windows 플랫폼으로 구축 된 프로젝트를 가져 왔으며 우분투가 있습니다. 따라서 프로젝트를 가져올 때이 오류가 발생합니다.Android Studio : 지원되지 않는 major.minor 버전 52.0
Error:(1, 0) Cause: com/android/build/gradle/AppPlugin : Unsupported major.minor version 52.0
어떻게하면 프로젝트를 실행할 수 있습니까? 나는 모든 가능한 해결책을 시도했지만 그들 중 하나를 작동하지 않았다.
이미 SDK 경로를 지적하고 JDK 1.7.0을 사용하고 있습니다. 최신 버전 인 Gradle 2.14.1을 사용합니다.
여기 내 gradle.build 파일입니다.
apply plugin: 'com.android.application'
android {
compileSdkVersion 23
buildToolsVersion "23.0.1"
useLibrary 'org.apache.http.legacy'
defaultConfig {
applicationId "com.example.lenovo.myapp"
minSdkVersion 19
targetSdkVersion 23
versionCode 1
versionName "1.0"
multiDexEnabled true
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
packagingOptions {
exclude 'META-INF/DEPENDENCIES'
exclude 'META-INF/NOTICE'
exclude 'META-INF/LICENSE'
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/NOTICE.txt'
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.google.api-client:google-' +
'api-client-gson:+'
compile 'com.android.support:appcompat-v7:23.4.0'
compile 'com.android.support:design:23.4.0'
compile 'com.google.http-client:google-http-client-android:+'
compile 'com.google.api-client:google-api-client-android:+'
compile 'com.google.code.gson:gson:2.2.4'
compile 'org.apache.httpcomponents:httpclient:4.5'
compile 'com.google.android.gms:play-services-identity:9.2.1'
compile 'com.google.android.gms:play-services-plus:9.2.1'
compile 'com.google.android.gms:play-services-gcm:9.2.1'
compile 'com.mcxiaoke.volley:library-aar:1.0.0'
compile 'org.apache.httpcomponents:httpcore:4.4.1'
compile 'org.apache.httpcomponents:httpmime:4.3.6'
compile 'com.squareup.retrofit2:retrofit:2.1.0'
compile 'com.squareup.okhttp:okhttp:2.3.0'
compile 'com.squareup.retrofit2:converter-gson:2.1.0'
compile 'com.android.support.constraint:constraint-layout:1.0.0-alpha5'
compile 'com.github.bumptech.glide:glide:3.6.0'
compile 'com.jakewharton:butterknife:6.1.0'
compile 'com.davemorrissey.labs:subsampling-scale-image-view:3.1.3'
testCompile 'junit:junit:4.12'
}
모든 해결책을 얻을 수 있습니다. 나는 지난 2 일 이후 붙어있다.
JDK 경로를 8 - Oracle으로 변경했는데 "설치 저장소 및 프로젝트 동기화"오류가 발생합니다. 어떤 생각? – SSR
해결 실패 : com.android.support.constraint : constraint-layout : 1.0.0-alpha5 – SSR
이상은 전체 오류 – SSR