混淆错误checkSelfPermission

混淆错误:checkSelfPermission是android6.0的方法 需要设置本地编译环境为23才能编译通过

Warning: u.aly.bt: can't find referenced method 'int checkSelfPermission(java.lang.String)' in library class android.content.Context

Warning: there were 1 unresolved references to library class members.

You probably need to update the library versions.

(http://proguard.sourceforge.net/manual/troubleshooting.html#unresolvedlibraryclassmember)

Exception while processing task

java.io.IOException: Please correct the above warnings first.

at proguard.Initializer.execute(Initializer.java:473)

at proguard.ProGuard.initialize(ProGuard.java:233)

at proguard.ProGuard.execute(ProGuard.java:98)

at proguard.gradle.ProGuardTask.proguard(ProGuardTask.java:1074)

at com.android.build.gradle.tasks.AndroidProGuardTask.doMinification(AndroidProGuardTask.java:139)

at com.android.build.gradle.tasks.AndroidProGuardTask$1.run(AndroidProGuardTask.java:115)

at com.android.builder.tasks.Job.runTask(Job.java:48)

at com.android.build.gradle.tasks.SimpleWorkQueue$EmptyThreadContext.runTask(SimpleWorkQueue.java:41)

at com.android.builder.tasks.WorkQueue.run(WorkQueue.java:227)

at java.lang.Thread.run(Thread.java:745)

你可能感兴趣的:(混淆错误checkSelfPermission)