저는 Android 개발에 익숙하지 않습니다. 실수했을 수도 있습니다. 나는 내 build.gradle 파일에 compileSdkVersion 25
과 함께 작업 해왔다. 하지만 내 응용 프로그램이 Android 4.1 이상에서 지원되기를 바랍니다.Android 앱을 다운 그레이드하는 올바른 방법은 무엇입니까?
그러나 Android 4.1 시스템에서 응용 프로그램을 실행하면 응용 프로그램이 즉시 종료됩니다 (지원되지 않으므로).
나는 compileSdkVersion 25
을 compileSdkVersion 16
으로 변경하려고 시도했으나 많은 오류가 발생합니다 (이유를 알고 있습니다). 그것은 종류의 짜증나는 안드로이드 4.1에서 지원되지 않는 모든 작은 일을 변경 시작하려면, 그래서 ..
질문 : 안드로이드 응용 프로그램을 다운 그레이드하는 올바른 방법은 무엇입니까?
현재 build.gradle이 들어
apply plugin: 'com.android.application'
android {
compileSdkVersion 25
buildToolsVersion "25.0.2"
defaultConfig {
applicationId "xxxx"
minSdkVersion 16
targetSdkVersion 25
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
resValue "string", "google_maps_key", (project.findProperty("GOOGLE_MAPS_API_KEY") ?: "")
multiDexEnabled true
useLibrary 'org.apache.http.legacy'
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile 'com.android.support:appcompat-v7:25.2.0'
compile 'com.google.android.gms:play-services:9.8.0'
compile 'com.google.firebase:firebase-core:9.8.0'
testCompile 'junit:junit:4.12'
compile 'com.android.support:design:25.2.0'
compile 'com.android.support.constraint:constraint-layout:1.0.1'
}
아마도이 오류는 상위 버전의 호환되지 않는 코드 때문에 발생합니다. 지원 라이브러리를 사용하여 일부 호환 코드를 사용해야 할 수도 있습니다. – Enzokie
@Enzokie 네, 그 사실을 알고 있지만, 그렇게 할 수있는 간단한 방법을 찾고 있습니다. – Guido
* 안드로이드 4.1에서 지원되지 않는 모든 작은 것들을 바꾸기 시작하는 것은 성가시다. * 다른 옵션은 없다. –