2
gcm 작업을 사용하는 Android 푸시 알림 중에 이러한 오류가 발생했습니다. 제안 사항을 알려주십시오. java.io.File을 해결하는 방법 android.support.v4.content.ContextCompat.getNoBackupFilesDir
나는 나의 application.Give 제안의 build.gradle 세부 사항을 첨부 나를 해결하는 데 도움이 :FATAL EXCEPTION: IntentService[]
Process: push.gcm.android.com.pushsample, PID: 7930
java.lang.IncompatibleClassChangeError:
Methodjava.io.Fileandroid.support.v4.content.ContextCompat.getNoBackupFilesDir(android.content.Context) was expected to be of type virtual but instead was found to be of type direct (declaration of 'java.lang.reflect.ArtMethod' appears in /system/framework/core-libart.jar)
build.gradle :
apply plugin: 'com.android.application'
android {
compileSdkVersion 24
buildToolsVersion "24.0.0"
defaultConfig {
applicationId "push.gcm.android.com.pushsample"
minSdkVersion 15
targetSdkVersion 24
versionCode 1
versionName "1.0"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:24.1.1'
compile 'com.android.support:design:24.1.1'
compile 'com.google.android.gms:play-services-gcm:8.3.0'
}
apply plugin: 'com.google.gms.google-services'
감사합니다.
체크 [this] (http://stackoverflow.com/questions/1980452/what-causes-java-lang-incompatibleclasschangeerror) – Nikhil