android su 程序,java.lang.IllegalAccessError:方法’void android.su...

当我将目标sdk级别从23.0.2更改为25.0.1时,我的应用程序在以下行崩溃了.

我应该怎么做才能避免这种崩溃?

请提出更改建议.

InstanceID instanceID = InstanceID.getInstance(getContext());

错误日志:

AndroidRuntime: FATAL EXCEPTION: AsyncTask #2

Process: com.tuitoapp.admin, PID: 19012 java.lang.RuntimeException: An error occured while executing doInBackground()

Caused by: java.lang.IllegalAccessError: Method 'void android.support.v4.content.ContextCompat.()' is inaccessible to class 'com.google.android.gms.iid.zzd' (declaration of 'com.google.android.gms.iid.zzd' appears in /data/data/com.tuitoapp.admin/files/instant-run/dex/slice-com.google.android.gms-play-services-gcm-8.3.0_7fd6e981c2dc6578e4c382ecd19f08197a01f8b5-classes.dex)

at com.google.android.gms.iid.zzd.zzdL(Unknown Source)

at com.google.android.gms.iid.InstanceID.zza(Unknown Source)

at com.google.android.gms.iid.InstanceID.getInstance(Unknown Source)

我的应用程序优先级是:

// compile fileTree(dir: 'libs', include: ['*.jar'])

testCompile 'junit:junit:4.12'

compile 'org.achartengine:achartengine:1.2.0'

compile('com.crashlytics.sdk.android:crashlytics:2.6.2@aar') {

transitive = true;

}

compile 'org.jsoup:jsoup:1.8.3'

compile 'com.mcxiaoke.volley:library:1.0.19'

compile 'com.android.support:appcompat-v7:25.1.1'

compile 'com.android.support:design:25.1.1'

compile 'com.pkmmte.view:circularimageview:1.1'

compile 'com.android.support:cardview-v7:25.0.1'

compile 'org.achartengine:achartengine:1.2.0'

compile 'com.github.npanigrahy:Custom-Calendar-View:v1.0'

compile 'com.github.siyamed:android-shape-imageview:0.9.+@aar'

compile 'com.google.android.gms:play-services:8.3.0'

compile 'com.android.support:multidex:1.0.1'

// compile 'com.google.android.gms:play-services:9.8.0

// compile 'com.google.android.gms:play-services:9.8.0'

compile 'com.android.support:multidex:1.0.1'

compile 'pub.devrel:easypermissions:0.1.9'

compile 'com.github.ksoichiro:android-observablescrollview:1.6.0'

compile 'pl.droidsonroids.gif:android-gif-drawable:1.1.16'

compile 'com.miguelcatalan:materialsearchview:1.4.0'

compile 'com.github.rey5137:material:1.2.2'

compile 'uk.co.chrisjenx:calligraphy:2.1.0'

compile 'com.github.blackfizz:eazegraph:1.2.5l@aar'

compile 'com.github.PhilJay:MPAndroidChart:v2.1.6'

compile 'com.squareup.picasso:picasso:2.5.2'

compile 'com.nineoldandroids:library:2.4.0'

compile 'de.hdodenhof:circleimageview:2.1.0'

compile 'com.github.bumptech.glide:glide:3.7.0'

compile 'com.android.support:palette-v7:25.0.1'

compile 'com.nostra13.universalimageloader:universal-image-loader:1.9.5'

compile('com.weiwangcn.betterspinner:library:1.1.0') {

exclude group: 'com.android.support', module: 'appcompat-v7'

}

compile 'swarajsaaj:otpreader:1.0'

compile 'com.flipboard:bottomsheet-core:1.4.3'

compile 'com.flipboard:bottomsheet-commons:1.4.3'

compile 'com.riontech.staggeredtextgridview:staggeredtextgridview:1.0.1'

compile 'konifar:fab-transformation:1.0.0'

compile project(':flickabledialog')

compile 'com.android.support:support-v4:25.0.1'

}

apply plugin:'com.google.gms.google-services'

应用程序的主要优点是:

buildscript {

repositories {

jcenter()

mavenCentral()

maven {

url "https://jitpack.io"

}

}

dependencies {

classpath 'com.android.tools.build:gradle:2.2.3'

//These two lines are added

classpath 'com.google.gms:google-services:1.5.0-beta2'

//classpath 'com.google.gms:google-services:3.0.0'

// classpath 'com.android.tools.build:gradle:2.0.0-alpha6'

classpath 'com.android.tools.build:gradle:1.3.0'

classpath 'com.novoda:bintray-release:0.3.4'

// classpath 'com.google.gms:google-services:2.0.0-alpha3'

// NOTE: Do not place your application dependencies here; they belong

// in the individual module build.gradle files

}

}

task clean(type: Delete) {

delete rootProject.buildDir

}

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值