android-studio - android studio 能通过Clean和Rebuild,但在联手机测试时和Build apk时报错
伊谢尔伦
伊谢尔伦 2017-04-18 09:06:24
0
3
672

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

伊谢尔伦
伊谢尔伦

小伙看你根骨奇佳,潜力无限,来学PHP伐。

reply all(3)
大家讲道理

If the sdk is incomplete, enter the sdk manager. Click show package details in the lower right corner, select the undownloaded part of the SDK created by your project, and click to download. If it doesn't work, just change jdk to >=1.8. There are often problems with jdk1.7.

Ty80

It looks like a confusion problem
Either turn off confusion during debugging
or check where the confusion file is written incorrectly

左手右手慢动作

value 1 is usually written wrong somewhere in the xml and is not easy to find

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template