手机上android clean,android studio 能通过Clean和Rebuild,但在联手机测试时和Build apk时报错...

Information:Gradle tasks [:app:assembleDebug]

:app:preBuild UP-TO-DATE

:app:preDebugBuild UP-TO-DATE

:app:checkDebugManifest

:app:preReleaseBuild UP-TO-DATE

:app:prepareComAndroidSupportAnimatedVectorDrawable2511Library UP-TO-DATE

:app:prepareComAndroidSupportAppcompatV72511Library UP-TO-DATE

:app:preDebugAndroidTestBuild UP-TO-DATE

:app:prepareComAndroidSupportMultidex101Library UP-TO-DATE

:app:prepareComAndroidSupportSupportCompat2511Library UP-TO-DATE

:app:prepareComAndroidSupportSupportCoreUi2511Library UP-TO-DATE

:app:prepareComAndroidSupportSupportCoreUtils2511Library UP-TO-DATE

:app:prepareComAndroidSupportSupportFragment2511Library UP-TO-DATE

:app:prepareComAndroidSupportSupportMediaCompat2511Library UP-TO-DATE

:app:prepareComAndroidSupportSupportV42511Library UP-TO-DATE

:app:prepareComAndroidSupportSupportVectorDrawable2511Library UP-TO-DATE

:app:prepareDebugDependencies

:app:compileDebugAidl UP-TO-DATE

:app:compileDebugRenderscript UP-TO-DATE

:app:generateDebugBuildConfig UP-TO-DATE

:app:generateDebugAssets UP-TO-DATE

:app:mergeDebugAssets UP-TO-DATE

:app:generateDebugResValues UP-TO-DATE

:app:generateDebugResources UP-TO-DATE

:app:mergeDebugResources UP-TO-DATE

:app:processDebugManifest UP-TO-DATE

:app:processDebugResources UP-TO-DATE

:app:generateDebugSources UP-TO-DATE

:app:compileDebugJavaWithJavac UP-TO-DATE

:app:compileDebugNdk UP-TO-DATE

:app:compileDebugSources UP-TO-DATE

:app:transformClassesWithJarMergingForDebug UP-TO-DATE

:app:collectDebugMultiDexComponents UP-TO-DATE

:app:transformClassesWithMultidexlistForDebug

ProGuard, version 5.2.1

Reading program jar [C:UsersAdministratorAndroidStudioProjectsTestappbuildintermediatestransformsjarMergingdebugjars11fcombined.jar]

Reading library jar [D:AndroidStudiosdkbuild-tools25.0.2libshrinkedAndroid.jar]

Note: android.support.v4.view.ViewPager calls 'Class.getAnnotation'

Note: android.support.v4.app.NotificationCompatJellybean calls 'Field.getType'

Note: android.support.v4.app.NotificationCompatJellybean: can't find dynamically referenced class android.app.Notification$Action

Note: android.support.v4.media.ParceledListSliceAdapterApi21: can't find dynamically referenced class android.content.pm.ParceledListSlice

Note: android.support.v4.text.ICUCompatApi23: can't find dynamically referenced class libcore.icu.ICU

Note: android.support.v4.text.ICUCompatIcs: can't find dynamically referenced class libcore.icu.ICU

Note: android.support.v7.app.ResourcesFlusher: can't find dynamically referenced class android.content.res.ThemedResourceCache

Note: android.support.v7.widget.DrawableUtils: can't find dynamically referenced class android.graphics.Insets

Note: android.support.multidex.MultiDexExtractor accesses a method 'apply()' dynamically

Note: android.support.v4.app.NotificationCompatJellybean accesses a declared field 'icon' dynamically

Maybe this is program field 'android.support.v4.app.NotificationCompat$Action { int icon; }'

Maybe this is program field 'android.support.v7.appcompat.R$attr { int icon; }'

Maybe this is program field 'android.support.v7.appcompat.R$id { int icon; }'

Maybe this is program field 'com.example.administrator.test.R$attr { int icon; }'

Maybe this is program field 'com.example.administrator.test.R$id { int icon; }'

Note: android.support.v4.app.NotificationCompatJellybean accesses a declared field 'title' dynamically

Maybe this is program field 'android.support.v4.app.NotificationCompat$Action { java.lang.CharSequence title; }'

Maybe this is program field 'android.support.v7.appcompat.R$attr { int title; }'

Maybe this is program field 'android.support.v7.appcompat.R$id { int title; }'

Maybe this is program field 'com.example.administrator.test.R$attr { int title; }'

Maybe this is program field 'com.example.administrator.test.R$id { int title; }'

Note: android.support.v4.app.NotificationCompatJellybean accesses a declared field 'actionIntent' dynamically

Maybe this is program field 'android.support.v4.app.NotificationCompat$Action { android.app.PendingIntent actionIntent; }'

Note: android.support.v4.app.NotificationManagerCompatKitKat accesses a declared field 'OP_POST_NOTIFICATION' dynamically

Maybe this is program field 'android.support.v4.app.NotificationManagerCompatKitKat { java.lang.String OP_POST_NOTIFICATION; }'

Note: android.support.v4.media.session.MediaSessionCompatApi24 accesses a method 'getCallingPackage()' dynamically

Maybe this is program method 'android.support.v4.app.ShareCompat$IntentReader { java.lang.String getCallingPackage(); }'

Maybe this is program method 'android.support.v4.media.session.MediaSessionCompat { java.lang.String getCallingPackage(); }'

Maybe this is program method 'android.support.v4.media.session.MediaSessionCompat$MediaSessionImpl { java.lang.String getCallingPackage(); }'

Maybe this is program method 'android.support.v4.media.session.MediaSessionCompat$MediaSessionImplApi21 { java.lang.String getCallingPackage(); }'

Maybe this is program method 'android.support.v4.media.session.MediaSessionCompat$MediaSessionImplBase { java.lang.String getCallingPackage(); }'

Note: android.support.v4.text.ICUCompatApi23 accesses a method 'addLikelySubtags(java.util.Locale)' dynamically

Maybe this is program method 'android.support.v4.text.ICUCompatIcs { java.lang.String addLikelySubtags(java.util.Locale); }'

Note: android.support.v4.text.ICUCompatIcs accesses a method 'getScript(java.lang.String)' dynamically

Maybe this is program method 'android.support.v4.text.ICUCompatIcs { java.lang.String getScript(java.lang.String); }'

Note: android.support.v4.text.ICUCompatIcs accesses a method 'addLikelySubtags(java.lang.String)' dynamically

Note: android.support.v7.app.ResourcesFlusher accesses a declared field 'mDrawableCache' dynamically

Note: android.support.v7.app.ResourcesFlusher accesses a declared field 'mUnthemedEntries' dynamically

Note: android.support.v7.widget.DrawableUtils accesses a method 'getOpticalInsets()' dynamically

Note: android.support.v7.widget.ViewUtils accesses a method 'makeOptionalFitsSystemWindows()' dynamically

Note: there were 1 classes trying to access annotations using reflection.

You should consider keeping the annotation attributes

(using '-keepattributes *Annotation*').

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

Note: there were 1 classes trying to access generic signatures using reflection.

You should consider keeping the signature attributes

(using '-keepattributes Signature').

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

Note: there were 6 unresolved dynamic references to classes or interfaces.

You should check if you need to specify additional program jars.

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

Note: there were 13 accesses to class members by means of introspection.

You should consider explicitly keeping the mentioned class members

(using '-keep' or '-keepclassmembers').

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

Note: you're ignoring all warnings!

Preparing output jar [C:UsersAdministratorAndroidStudioProjectsTestappbuildintermediatesmulti-dexdebugcomponentClasses.jar]

Copying resources from program jar [C:UsersAdministratorAndroidStudioProjectsTestappbuildintermediatestransformsjarMergingdebugjars11fcombined.jar]

:app:transformClassesWithMultidexlistForDebug FAILED

Error:Execution failed for task ':app:transformClassesWithMultidexlistForDebug'.

com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:Program FilesJavajdk1.7.0_79binjava.exe'' finished with non-zero exit value 1

Information:BUILD FAILED

Information:Total time: 4.3 secs

Information:1 error

Information:0 warnings

Information:See complete output in console

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

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值