1.dexDebug ExecException finished with non-zero exit value 2 全bug日志如下:

(Error:Execution failed for task ':app:dexDebug'.

> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'D:\JDK8\jdk1.8.0_11\bin\java.exe'' finished with non-zero exit value 2)
需要在gradle中配置下面的代码,原因是引用了多个libraries文件

defaultConfig {
multiDexEnabled true
}

2.Execution failed for task ':app:transformClassesWithJarMergingForDebug'.
> com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: android/support/v4/app/BackStackState$1.class

Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'.
> com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: android/support/annotation/ArrayRes.class

Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'.
> com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: com/android/volley/ServerError.class

原因:在所添加的jar包或aar包中也引用了support-V4,与工程中引用的相冲突
Ctrl+N --> 在搜索框中输入BackStackState --> 查找到所有引用该类的类,这些类即为引起冲突的类
去掉本工程中gradle中用于引用有冲突的包的代码或者将冲突的代码从jar包或aar包中移除,确保一个module中只引用了一份相同的第三方包

3.project sturcture和Project Structure 无论是按快捷键或者是从files中打开都不显示

event log中报:IllegalArgumentException:Multiple entries with same key: Google Inc.:Google APIs:23=Google APIs (Google Inc.) (API 23) and Google Inc.:Google APIs:23=Google APIs (Google Inc.) (API 23)

解决办法:先看一下系统配置的SDK的位置和Android Studio所用的路径是否一致,如果不一致重新配置系统的SDK路径或者是重新修改Android Studio的SDK路径
通过SDK Manager删除掉google API23
如果解决不了,卸载android studio -->重新安装 ,还有问题点击File --> Invalidate Cashes/Restart --> Invalidate and Restart,解决不了继续通过SDK Manager删除掉google API23

4.

Error:Execution failed for task ':app:clean'.
> Unable to delete directory: E:\as_workspaces\DJIgo\app\build\intermediates\res\merged\debug

项目中有错,无法删除这个文件夹下面的文件。手动删除debug文件夹或某工具粉碎即可(补充与20160916)。

5.

Error:Execution failed for task ':bugs_framework_master:processDebugAndroidTestManifest'.
> java.lang.RuntimeException: Manifest merger failed : uses-sdk:minSdkVersion 18 cannot be smaller than version 19 declared in library [DJIgo:tysubwayinspection3.0-framework:unspecified] E:\as_workspaces\DJIgo\bugs_framework_master\build\intermediates\exploded-aar\DJIgo\t3.0-framework\unspecified\AndroidManifest.xml
Suggestion: use tools:overrideLibrary="com.t.framework" to force usage

应该是Library的sdk的版本与app的sdk的版本有冲突

6.

Error:Execution failed for task ':app:processDebugManifest'.
> Manifest merger failed : uses-sdk:minSdkVersion 17 cannot be smaller than version 19 declared in library [DJIgo:djigo-lib:unspecified] E:\as_workspaces\DJIgo\app\build\intermediates\exploded-aar\DJIgo\djigo-lib\unspecified\AndroidManifest.xml
Suggestion: use tools:overrideLibrary="com.lib.djigo" to force usage

7.

Error:Execution failed for task ':djigo-lib:compileReleaseJavaWithJavac'.
> Compilation failed; see the compiler error output for details.

http://stackoverflow.com/questions/33404552/execution-failed-for-task-appcompiledebugjavawithjavac-in-android-studio

8.

注: E:\as_workspaces\DJIgo\djigo-lib\src\main\java\com\xxx\lib\djigo\ui\view\ControlMoveView.java使用或覆盖了已过时的 API。
注: 有关详细信息, 请使用 -Xlint:deprecation 重新编译。 android studio-File->Project Structure->Android sdk location(路径应该不正确)

9.

Error:Execution failed for task ':app:compileDebugJavaWithJavac'.
> java.io.FileNotFoundException: E:\as_workspaces\TYSubway\app\libs\pushservice-4.5.6.88.jar (系统找不到指定的文件。)

需要把dependencies中的lib包下面的jar包全部取消下,再添加。

10.

Error:Execution failed for task ':xxxxx-framework:packageReleaseResources'.
> java.io.IOException: Could not delete folder E:\as_workspaces\DJIgo\tysubwayinspection3.0-framework\build\intermediates\bundles\release\res

11.由于使用sdk5.0造成的以下问题,需要用sdk6.0

E:\as_workspaces\DJIgo\app\build\intermediates\res\merged\debug\values-v23\values-v23.xml
Error:(3) Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.Button.Inverse'.
Error:(18) Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Button.Colored'.
Error:Execution failed for task ':app:processDebugResources'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'D:\Android\adt-bundle-windows-x86_64-20140702\android_sdk\build-tools\23.0.0\aapt.exe'' finished with non-zero exit value 1

12.

Error:Execution failed for task ':app:clean'.
> Unable to delete file: E:\as_workspaces\DjiGo-Demo\app\build\intermediates\exploded-aar\com.android.support\support-v4\23.3.0\jars\classes.jar

项目中有错

13.

Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'.
> com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: android/support/annotation/IntegerRes.class

包冲突了,在app及子library中仔细找是否有相同的jar包

14.

Error:Execution failed for task ':app:clean'.
> Unable to delete directory: E:\as_workspaces\DJIGO_FLY\app\build\outputs\apk

无法删除这个文件夹下的文件,到目录下面就知道了。

15.

关于R文件无法引入,导致很长时间无法找到错误的根源。比如:如果错误在A类里面发生,但是Message里提示的是B类的R文件无法引入。

这样你就要用排除法,就像做选择题,要将B类的问题先注释掉,A类里面的问题才会暴露出来。

16. 2016-07-04

关于该问题,需要注意的是。有时候虽然有个红叉但是也能运行,可能as校验导致该问题。另外如果代码中没有什么问题时,就需要查看下AndroidManifest.xml是否有错误,一般情况下是这个原因导致。只要知道这个即可。

17.2016-07-04

Error:Execution failed for task ':StructureCheck_Library:clean'.
> Unable to delete directory: E:\as_workspaces\xxxxx_Reconsitution\xxxx_Library\build\intermediates\exploded-aar

按照上面的说明,不能删除这个目录,你就手动删除下

18.2016-07-15

Error:Execution failed for task ':app:clean'.
> Unable to delete directory: E:\as_workspaces\xxxxxx_Reconsitution\app\build\intermediates\classes\debug\com\xxxxx\xxxx\subway

Unable to delete directory 像这样不能删除文件,你就找这个这个文件夹删除掉,如果不能删除就粉碎掉。官网的错误提示还是比较傻瓜式的,他让你干嘛,你就干嘛就行了。

19.2016-07-18

20.2016-09-14
当Model中的代码无法生产R文件,可以做如下操作,但前提是包中的xml、java代码无冲突(保证之前尽量多clean,然后查看Message)。
Build-Make Module 'xxxxx'
21.2016-09-16
当发生如下问题时
1.将下图中的配置改成你AS中能编译项目中配置行即可
2.如下图中的地方也需要注意下(就是讲目前你as中能正常运行的项目中的配置替换成这句distributionUrl-更新于20160920)
 22.2016-09-23
EditText: layout tag was TextView [WrongViewCast]
场景:代码运行、clean、编译都没问题,在手机上运行也没问题,但是使用签名以后就曝该错误。怎么折腾都不行,但是前提是所有代码都是正确的View的类型转换完全正确。
解决:AActivity在app包下面,但是layou布局在另外一个Library(下称B包)中,在解决问题的过程中猜想可能是这个问题导致,最后将B包中本属于app包下面的布局文件移至app包下面就解决了该问题。
23.2016-10-24

Error:(1, 0) Plugin is too old, please update to a more recent version, or set ANDROID_DAILY_OVERRIDE environment variable to "ad3f801955f53e94516853b8f93ac2b9ee8cc4"
<a href="fixGradleElements">Fix plugin version and sync project</a><br><a href="openFile:E:\as_workspaces\PedometerDemo\app\build.gradle">Open File</a>

将该处的配置改成目前能使用的项目的配置

 24.2016-10-24

Error:Could not open no_initscript class cache for initialization script 'C:\Users\xxx\AppData\Local\Temp\asLocalRepo194.gradle' (C:\Users\xxx\.gradle\caches\2.4\scripts\asLocalRepo194_dzs652nv4687n61mc501sfben\InitScript\no_initscript).
> Failed to create directory 'C:\Users\xxxx\.gradle\caches\2.4\scripts\asLocalRepo194_dzs652nv4687n61mc501sfben\InitScript\no_initscript\classes'

 25.2016-11-01
Error:Execution failed for task ':app:transformClassesWithDexForDebug'.
>
com.android.build.api.transform.TransformException: java.lang.RuntimeException:
java.lang.RuntimeException: com.android.ide.common.process.ProcessException:
java.util.concurrent.ExecutionException:
java.lang.UnsupportedOperationException
 该问题是由于libs导入的v4包版本有问题,后来改成下面就可以了

dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
compile files('libs/Volley.jar')
compile files('libs/gson-1.7.1.jar')
compile 'com.android.support:support-v4:22.0.0'
} 26.2016.12.26
> Cannot find System JavaCompiler. Ensure that you have installed a JDK (not just a JRE) and configured your JAVA_HOME system variable to point to the according directory.

File-->Project-->Structrue-->SDK Location-->JDK location

Use embedded JDK 前面勾去掉,指定一个JDK地址。

27.2017.1.10

Error:com.android.builder.internal.aapt.AaptException: Failed to crunch file E:\as_workspaces\xxx_Reconsitution3\xxxx_StructureCheck_Library\build\intermediates\exploded-aar\xxxxx_Reconsitution3\xxxx_Framework_Library\unspecified\res\drawable-hdpi-v4\np_numberpicker_up_disabled_focused_holo_dark.png into E:\as_workspaces\xxxx_Reconsitution3\xxxx_StructureCheck_Library\build\intermediates\res\merged\androidTest\debug\drawable-hdpi-v4\np_numberpicker_up_disabled_focused_holo_dark.png

修改名称路径,避免路径过长

28.2017.2.16

当你android:targetSdkVersion="22" 再将22改成23时会遇到各种问题,例如编译不通过,文件无法写入(权限注册过)。把手机上的app删除,再安装即可。

29.2017.2.23

Error:Error converting bytecode to dex:
Cause: com.android.dex.DexException: Multiple dex files define Landroid/support/v4/accessibilityservice/AccessibilityServiceInfoCompat$AccessibilityServiceInfoVersionImpl;

30.2017.2.24

Error:A problem occurred configuring project ':app'.
> Unable to find optional library: org.apache.http.legacy

android {
compileSdkVersion
buildToolsVersion "23.0.3"
defaultConfig {
applicationId 'com.xxx.xxxe'
minSdkVersion 14
targetSdkVersion
versionCode 1
versionName "1.0"
multiDexEnabled true
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
productFlavors {
}
useLibrary 'org.apache.http.legacy'
}

31.2017-03-08

Error:Execution failed for task ':app:compileReleaseJava'.
> Cannot find System Java Compiler. Ensure that you have installed a JDK (not just a JRE) and configured your JAVA_HOME system variable to point to the according directory.

将此处的勾选去掉,再改成你的jdk根目录

32.

Error:Error converting bytecode to dex:
Cause: com.android.dex.DexException: Multiple dex files define Lorg/apache/commons/net/DatagramSocketClient;

clean

33.2017-04-28

Error:Execution failed for task ':app:transformClassesWithDexForDebug'.
> com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: java.lang.UnsupportedOperationException

同第25.

34.2017-04-28

android API23 无法使用HttpClient无法使用,在build.gradle文件中加入下面代码即可

android {
useLibrary "org.apache.http.legacy"
}

35.2017-07-06

Error:Failed to open zip file.
Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.)
<a href="syncProject">Re-download dependencies and sync project (requires network)</a>
<a href="syncProject">Re-download dependencies and sync project (requires network)</a>

该问题主要是你Gradle版本不对,在当前正常能运行的项目中File->Project Structure->Project->gradle version (2.14.1),将该版本设置到你不能运行的项目中的相同位置。然后,就没有然后了。

36.2017-08-08

Error:Execution failed for task ':app:processDebugResources'.
> com.android.ide.common.process.ProcessException: Failed to execute aapt

看看是不是少包了

37.2017-11-04

Error:Failed to complete Gradle execution.  Cause: Protocol family unavailable

使用Android Studio创建新项目后,一直出现 “Failed to complete Gradle execution. Cause: A fatal exception has occurred. Program will exit”这个问题。解决方法是:

打开工程的gradle.properties文件,添加如下配置项:

org.gradle.jvmargs=-Xmx512m -XX:MaxPermSize=512m

这个问题应该就不会出现了。

38.2017-12-01

build\intermediates\res\merged\debug\values\values.xml

将下列三个版本改成相同的

compileSdkVersion 
compileSdkVersion 
targetSdkVersion

39.2018-01-03

E:\as_workspaces\HQDetectionSysForMob\app\build\intermediates\res\merged\debug\values\values.xml
Error:(203) Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.Dialog'.
Error:(208, 21) No resource found that matches the given name: attr 'colorAccent'.
Error:(205, 21) No resource found that matches the given name: attr 'colorPrimary'.
Error:(207, 21) No resource found that matches the given name: attr 'colorPrimaryDark'.
Error:(204, 21) No resource found that matches the given name: attr 'windowActionBar'.
Error:(203) Error retrieving parent for item: No resource found that matches the given name 'Theme.AppCompat.Light.Dialog'.
Error:(208, 21) No resource found that matches the given name: attr 'colorAccent'.
Error:(205, 21) No resource found that matches the given name: attr 'colorPrimary'.
Error:(207, 21) No resource found that matches the given name: attr 'colorPrimaryDark'.
Error:(204, 21) No resource found that matches the given name: attr 'windowActionBar'.
Error:Execution failed for task ':app:processDebugResources'.
> com.android.ide.common.process.ProcessException: Failed to execute aapt

40.2018-01-22

Error:(25, 1) A problem occurred evaluating project ':app'.
> Could not find method implementation() for arguments [com.android.support.constraint:constraint-layout:1.0.2] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDependencyHandler.

某个build文件中

implementation 'com.android.support.constraint:constraint-layout:1.0.2'
这个删除或者改成
compile

 

41.2018-01-08

Error:Execution failed for task ':app:compileDebugKotlin'.
> Compilation error. See log for more details

看下 EventLog

42.2018-04-04

Error:Execution failed for task ':app:transformDexWithDexForRelease'.
> com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.dex.DexIndexOverflowException: Cannot merge new index 66553 into a non-jumbo instruction!

在 app 包下的 build.gradle文件中 加入android {

dexOptions {
jumboMode true
}

} 记得别把android{}里面

43.2018-04-08

Error:Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'.
> com.android.builder.dexing.DexArchiveMergerException: Unable to merge dex

看下 EventLog和Gradle Console

44.2018.4.16

Error:Execution failed for task ':app:lintVitalRelease'.
> java.lang.NullPointerException (no error message)

在build.gradle加入下列注解

android{

   lintOptions {

    checkReleaseBuilds false

     abortOnError false

   }

}

45.2018.4.27

Error:Execution failed for task ':app:packageRelease'.
> com.android.ide.common.signing.KeytoolException: Failed to read key subwaytroublecheckzz.keysto from store "E:\as_workspaces\xxxxx-ZZ-Doc\发布必备\xxxTroubleCheckZZ.keystore": Cannot recover key

密码错了,认真重新输入

46.2018.5.2

Error:null value in entry: streamOutputFolder=null

解决办法是,删除项目根目录的.gradle文件夹,然后Clean ,Rebulid。

46.2018.5.8

Error:A problem occurred configuring project ':app'.
> android-apt plugin is incompatible with the Android Gradle plugin. Please use 'annotationProcessor' configuration instead.

47.2018.5.9

java.lang.RuntimeException: Unable to instantiate application org.odk.collect.android.application.Collect: java.lang.ClassNotFoundException: Didn't find class "org.odk.collect.android.application.Collect" on path: DexPathList[[zip file "/system/framework/com.google.android.maps.jar"],nativeLibraryDirectories=[/vendor/lib, /system/lib]]
https://github.com/opendatakit/collect/issues/387
Android4.4中的问题,填了两次坑。解决办法:自定义的Application需要继承MultiDexApplication (
compile 'com.android.support:multidex:1.0.0'
)

48.2018.7.24

  Error:Execution failed for task ':app:transformClassesWithDexForRelease'.
  > com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: java.lang.OutOfMemoryError: GC overhead limit exceeded

  解决办法:项目下有个gradle.properties文件,修改org.gradle.jvmargs=-Xmx1536m,将1536的值改大点

49. 2018.8.28

Error:Execution failed for task ':app:transformResourcesWithMergeJavaResForDebug'. > More than one file was found with OS independent path 'META-INF/DEPENDENCIES'

https://blog.csdn.net/realliuning/article/details/80010591

50.2018.11.29

Error:java.lang.ClassNotFoundException: org.jetbrains.kotlin.util.PerformanceCounter
Error:java.util.zip.ZipException: invalid LOC header (bad signature)
Error:Execution failed for task ':extras:xxxxx_Framework_Library:compileDebugKotlin'.
> Compilation error. See log for more details

解决:File-》Settings-》Plugins-》Browse repositories-》搜索Kotlin,查看当前版本,如图:

然后将该版本好写至你项目根目录下的build.gradle文件中的配置中,如下图:

51.2018.12.6

SSL peer shut down incorrectly  需要一个梯子

52.2019.1.5

百度推送绑定报错,错误码为10101,有可能是so文件没有导入

53.2019.1.10

No toolchains found in the NDK toolchains folder for ABI with prefix: mips64el-linux-android

需要下载ndk,下载好后在Project Structure里面有一个Android NDK location,把ndk的根目录设置好就ok

54.20190110

org.gradle.api.UncheckedIOException: Failed to capture snapshot of input files for task ':app:javaPreCompileDebug' property 'compileClasspaths' during up-to-date check.

55.20190115

ERROR: Could not find ddmlib.jar (com.android.tools.ddms:ddmlib:26.0.1).
Searched in the following locations:
https://jcenter.bintray.com/com/android/tools/ddms/ddmlib/26.0.1/ddmlib-26.0.1.jar

这个问题是仓库请求错误的问题,换个仓库就好了。在项目的根目录下面的build.gradle文件,自己少什么库的包,就添加什么库,http://maven.aliyun.com/mvn/view

allprojects {
repositories {
maven {url 'https://maven.aliyun.com/repository/jcenter'}
jcenter()
mavenCentral()
google()
}
}

56.20190228

Android studio already exists at the specified project location

在Android studio 3.0之后,as禁止在项目workspace的根目录中创建项目的,防止workspace中的文件乱如麻,你可以再save location目录后面手动加上项目名

57.20190315

Syncing only active variant
You can disable this experimental feature from
File → Settings → Experimental → Gradle → Only sync the active variant

58.20190316

org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'.
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:100)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:70)
at org.gradle.api.internal.tasks.execution.OutputDirectoryCreatingTaskExecuter.execute(OutputDirectoryCreatingTaskExecuter.java:51)
at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:62)
at org.gradle.api.internal.tasks.execution.ResolveTaskOutputCachingStateExecuter.execute(ResolveTaskOutputCachingStateExecuter.java:54)
at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:60)
at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:97)
at org.gradle.api.internal.tasks.execution.CleanupStaleOutputsExecuter.execute(CleanupStaleOutputsExecuter.java:87)
at org.gradle.api.internal.tasks.execution.ResolveTaskArtifactStateTaskExecuter.execute(ResolveTaskArtifactStateTaskExecuter.java:52)
at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:52)
at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:54)
at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:43)
at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:34)
at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker$1.run(DefaultTaskGraphExecuter.java:248)
at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:336)
at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:328)
at org.gradle.internal.progress.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:199)
at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:110)
at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:241)
at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:230)
at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.processTask(DefaultTaskPlanExecutor.java:123)
at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.access$200(DefaultTaskPlanExecutor.java:79)
at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker$1.execute(DefaultTaskPlanExecutor.java:104)
at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker$1.execute(DefaultTaskPlanExecutor.java:98)
at org.gradle.execution.taskgraph.DefaultTaskExecutionPlan.execute(DefaultTaskExecutionPlan.java:626)
at org.gradle.execution.taskgraph.DefaultTaskExecutionPlan.executeWithTask(DefaultTaskExecutionPlan.java:581)
at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.run(DefaultTaskPlanExecutor.java:98)
at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:63)
at org.gradle.internal.concurrent.ManagedExecutorImpl$1.run(ManagedExecutorImpl.java:46)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:55)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.RuntimeException: com.android.builder.dexing.DexArchiveMergerException: Error while merging dex archives:

/Users/Rubert/Android/workspace/xxx/app/build/intermediates/transforms/dexBuilder/debug/16.jar, /Users/Rubert/Android/workspace/xxx/app/build/intermediates/transforms/dexBuilder/debug/17.jar, /Users/Rubert/Android/workspace/xxx/app/build/intermediates/transforms/dexBuilder/debug/18.jar, /Users/Rubert/Android/workspace/xxx/app/build/intermediates/transforms/dexBuilder/debug/19.jar, /Users/Rubert/Android/workspace/New/app/build/intermediates/transforms/dexBuilder/debug/20.jar, /Users/Rubert/Android/workspace/New/app/build/intermediates/transforms/dexBuilder/debug/21.jar,

/Users/Rubert/Android/workspace/New/app/build/intermediates/transforms/dexBuilder/debug/22.jar, /Users/Rubert/Android/workspace/New/app/build/intermediates/transforms/dexBuilder/debug/23.jar,

at com.android.builder.profile.Recorder$Block.handleException(Recorder.java:55)
at com.android.builder.profile.ThreadRecorder.record(ThreadRecorder.java:104)
at com.android.build.gradle.internal.pipeline.TransformTask.transform(TransformTask.java:212)
at sun.reflect.GeneratedMethodAccessor620.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:73)
at org.gradle.api.internal.project.taskfactory.IncrementalTaskAction.doExecute(IncrementalTaskAction.java:46)
at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:39)
at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:26)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$1.run(ExecuteActionsTaskExecuter.java:121)
at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:336)
at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:328)
at org.gradle.internal.progress.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:199)
at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:110)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:110)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:92)
... 32 more
Caused by: com.android.builder.dexing.DexArchiveMergerException: Error while merging dex archives: /Users/Rubert/Android/workspace/New/app/build/intermediates/transforms/dexBuilder/debug/16.jar,/Users/Rubert/Android/workspace/New/app/build/intermediates/transforms/dexBuilder/debug/17.jar, /Users/Rubert/Android/workspace/TNew/app/build/intermediates/transforms/dexBuilder/debug/18.jar, /Users/Rubert/Android/workspace/New/app/build/intermediates/transforms/dexBuilder/debug/19.jar, at com.android.builder.dexing.D8DexArchiveMerger.getExceptionToRethrow(D8DexArchiveMerger.java:124)

at com.android.builder.dexing.D8DexArchiveMerger.mergeDexArchives(D8DexArchiveMerger.java:109)
at com.android.build.gradle.internal.transforms.DexMergerTransformCallable.call(DexMergerTransformCallable.java:101)
at com.android.build.gradle.internal.transforms.ExternalLibsMergerTransform.transform(ExternalLibsMergerTransform.kt:123)
at com.android.build.gradle.internal.pipeline.TransformTask$2.call(TransformTask.java:221)
at com.android.build.gradle.internal.pipeline.TransformTask$2.call(TransformTask.java:217)
at com.android.builder.profile.ThreadRecorder.record(ThreadRecorder.java:102)
... 47 more
Caused by: com.android.tools.r8.CompilationFailedException: Compilation failed to complete
at com.android.tools.r8.utils.ExceptionUtils.withCompilationHandler(ExceptionUtils.java:76)
at com.android.tools.r8.utils.ExceptionUtils.withD8CompilationHandler(ExceptionUtils.java:45)
at com.android.tools.r8.D8.run(D8.java:67)
at com.android.builder.dexing.D8DexArchiveMerger.mergeDexArchives(D8DexArchiveMerger.java:107)
... 52 more
Caused by: com.android.tools.r8.utils.AbortException
at com.android.tools.r8.utils.Reporter.failIfPendingErrors(Reporter.java:77)
at com.android.tools.r8.utils.Reporter.fatalError(Reporter.java:58)
at com.android.tools.r8.utils.ExceptionUtils.withCompilationHandler(ExceptionUtils.java:67)
... 55 more

60.20190524

Failed resolution of: Lrx/Single

这个问题是与RxJava2一起使用的 api 'com.squareup.retrofit2:adapter-rxjava:2.5.0' retrofit2.adapter.rxjava.RxJavaCallAdapterFactory类使用的Single类引用的还是rx.Single。所以报错。你需要用retrofit2.adapter.rxjava2.RxJava2CallAdapterFactory类,里面的Single使用的是io.reactivex.Single类。你值需要修改成如下api 'com.squareup.retrofit2:adapter-rxjava2:2.5.0'即可

61.20190704

Android resource linking failed
Output: error: resource style/Theme.AppCompat.Light.NoActionBar (aka com.yttxsoft.myapplication:style/Theme.AppCompat.Light.NoActionBar) not found.
/Users/Rubert/Desktop/MyApplication/app/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:138: error: style attribute 'attr/colorPrimary (aka com.yttxsoft.myapplication:attr/colorPrimary)' not found.
/Users/Rubert/Desktop/MyApplication/app/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:139: error: style attribute 'attr/colorPrimaryDark (aka com.yttxsoft.myapplication:attr/colorPrimaryDark)' not found.
/Users/Rubert/Desktop/MyApplication/app/build/intermediates/incremental/mergeDebugResources/merged.dir/values/values.xml:140: error: style attribute 'attr/colorAccent (aka com.yttxsoft.myapplication:attr/colorAccent)' not found.
error: failed linking references.

Command: /Users/Rubert/.gradle/caches/transforms-2/files-2.1/3721545e2985f21426d6d519bb5c9fa7/aapt2-3.2.1-4818971-osx/aapt2 link -I\
/Users/Rubert/Android/adt-bundle-mac-x86_64-20131030/sdk/platforms/android-25/android.jar\
--manifest\
/Users/Rubert/Desktop/MyApplication/app/build/intermediates/merged_manifests/debug/processDebugManifest/merged/AndroidManifest.xml\
-o\
/Users/Rubert/Desktop/MyApplication/app/build/intermediates/processed_res/debug/processDebugResources/out/resources-debug.ap_\
-R\
@/Users/Rubert/Desktop/MyApplication/app/build/intermediates/incremental/processDebugResources/resources-list-for-resources-debug.ap_.txt\
--auto-add-overlay\
--java\
/Users/Rubert/Desktop/MyApplication/app/build/generated/not_namespaced_r_class_sources/debug/processDebugResources/r\
--custom-package\
com.yttxsoft.myapplication\
-0\
apk\
--output-text-symbols\
/Users/Rubert/Desktop/MyApplication/app/build/intermediates/symbols/debug/R.txt\
--no-version-vectors
Daemon: AAPT2 aapt2-3.2.1-4818971-osx Daemon #0

20190719

org.gradle.api.tasks.TaskExecutionException: Execution failed for task ':app:packageRelease'.
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.execute(ExecuteActionsTaskExecuter.java:)
at org.gradle.api.internal.tasks.execution.OutputDirectoryCreatingTaskExecuter.execute(OutputDirectoryCreatingTaskExecuter.java:)
at org.gradle.api.internal.tasks.execution.SkipUpToDateTaskExecuter.execute(SkipUpToDateTaskExecuter.java:)
at org.gradle.api.internal.tasks.execution.ResolveTaskOutputCachingStateExecuter.execute(ResolveTaskOutputCachingStateExecuter.java:)
at org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute(ValidatingTaskExecuter.java:)
at org.gradle.api.internal.tasks.execution.SkipEmptySourceFilesTaskExecuter.execute(SkipEmptySourceFilesTaskExecuter.java:)
at org.gradle.api.internal.tasks.execution.CleanupStaleOutputsExecuter.execute(CleanupStaleOutputsExecuter.java:)
at org.gradle.api.internal.tasks.execution.ResolveTaskArtifactStateTaskExecuter.execute(ResolveTaskArtifactStateTaskExecuter.java:)
at org.gradle.api.internal.tasks.execution.SkipTaskWithNoActionsExecuter.execute(SkipTaskWithNoActionsExecuter.java:)
at org.gradle.api.internal.tasks.execution.SkipOnlyIfTaskExecuter.execute(SkipOnlyIfTaskExecuter.java:)
at org.gradle.api.internal.tasks.execution.ExecuteAtMostOnceTaskExecuter.execute(ExecuteAtMostOnceTaskExecuter.java:)
at org.gradle.api.internal.tasks.execution.CatchExceptionTaskExecuter.execute(CatchExceptionTaskExecuter.java:)
at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker$.run(DefaultTaskGraphExecuter.java:)
at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:)
at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:)
at org.gradle.internal.progress.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:)
at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:)
at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:)
at org.gradle.execution.taskgraph.DefaultTaskGraphExecuter$EventFiringTaskWorker.execute(DefaultTaskGraphExecuter.java:)
at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.processTask(DefaultTaskPlanExecutor.java:)
at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.access$(DefaultTaskPlanExecutor.java:)
at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker$.execute(DefaultTaskPlanExecutor.java:)
at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker$.execute(DefaultTaskPlanExecutor.java:)
at org.gradle.execution.taskgraph.DefaultTaskExecutionPlan.execute(DefaultTaskExecutionPlan.java:)
at org.gradle.execution.taskgraph.DefaultTaskExecutionPlan.executeWithTask(DefaultTaskExecutionPlan.java:)
at org.gradle.execution.taskgraph.DefaultTaskPlanExecutor$TaskExecutorWorker.run(DefaultTaskPlanExecutor.java:)
at org.gradle.internal.concurrent.ExecutorPolicy$CatchAndRecordFailures.onExecute(ExecutorPolicy.java:)
at org.gradle.internal.concurrent.ManagedExecutorImpl$.run(ManagedExecutorImpl.java:)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:)
at org.gradle.internal.concurrent.ThreadFactoryImpl$ManagedThreadRunnable.run(ThreadFactoryImpl.java:)
at java.lang.Thread.run(Thread.java:)
Caused by: org.gradle.tooling.BuildException: com.android.ide.common.signing.KeytoolException: Failed to read key key0 from store "/Users/Rubert/Desktop/TYInterllectCloudPlatform_LongyanJY.jks": Cannot recover key
at com.android.build.gradle.internal.scope.BuildElements$ExecutorBasedScheduler$transform$.invoke(BuildElements.kt:)
at com.android.build.gradle.internal.scope.BuildElements$ExecutorBasedScheduler$transform$.invoke(BuildElements.kt:)
at kotlin.sequences.SequencesKt___SequencesKt$onEach$.invoke(_Sequences.kt:)
at kotlin.sequences.TransformingSequence$iterator$.next(Sequences.kt:)
at kotlin.sequences.FilteringSequence$iterator$.calcNext(Sequences.kt:)
at kotlin.sequences.FilteringSequence$iterator$.hasNext(Sequences.kt:)
at kotlin.sequences.TransformingSequence$iterator$.hasNext(Sequences.kt:)
at kotlin.sequences.SequencesKt___SequencesKt.toCollection(_Sequences.kt:)
at kotlin.sequences.SequencesKt___SequencesKt.toMutableList(_Sequences.kt:)
at kotlin.sequences.SequencesKt___SequencesKt.toList(_Sequences.kt:)
at com.android.build.gradle.internal.scope.BuildElements$ExecutorBasedScheduler.transform(BuildElements.kt:)
at com.android.build.gradle.internal.scope.BuildElements$ExecutorBasedScheduler.into(BuildElements.kt:)
at com.android.build.gradle.internal.scope.BuildElementActionScheduler.into(BuildElementActionScheduler.kt:)
at com.android.build.gradle.tasks.PackageAndroidArtifact.doFullTaskAction(PackageAndroidArtifact.java:)
at com.android.build.gradle.internal.tasks.IncrementalTask.taskAction(IncrementalTask.java:)
at sun.reflect.GeneratedMethodAccessor352.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:)
at java.lang.reflect.Method.invoke(Method.java:)
at org.gradle.internal.reflect.JavaMethod.invoke(JavaMethod.java:)
at org.gradle.api.internal.project.taskfactory.IncrementalTaskAction.doExecute(IncrementalTaskAction.java:)
at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:)
at org.gradle.api.internal.project.taskfactory.StandardTaskAction.execute(StandardTaskAction.java:)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter$.run(ExecuteActionsTaskExecuter.java:)
at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:)
at org.gradle.internal.progress.DefaultBuildOperationExecutor$RunnableBuildOperationWorker.execute(DefaultBuildOperationExecutor.java:)
at org.gradle.internal.progress.DefaultBuildOperationExecutor.execute(DefaultBuildOperationExecutor.java:)
at org.gradle.internal.progress.DefaultBuildOperationExecutor.run(DefaultBuildOperationExecutor.java:)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeAction(ExecuteActionsTaskExecuter.java:)
at org.gradle.api.internal.tasks.execution.ExecuteActionsTaskExecuter.executeActions(ExecuteActionsTaskExecuter.java:)
... more
Caused by: java.lang.RuntimeException: com.android.ide.common.signing.KeytoolException: Failed to read key key0 from store "/Users/Rubert/Desktop/xxxxx.jks": Cannot recover key
at com.android.build.gradle.internal.packaging.IncrementalPackagerBuilder.withSigning(IncrementalPackagerBuilder.java:)
at com.android.build.gradle.tasks.PackageAndroidArtifact.doTask(PackageAndroidArtifact.java:)
at com.android.build.gradle.tasks.PackageAndroidArtifact.splitFullAction(PackageAndroidArtifact.java:)
at com.android.build.gradle.tasks.PackageAndroidArtifact.lambda$doFullTaskAction$(PackageAndroidArtifact.java:)
at com.android.build.gradle.internal.scope.BuildElements$ExecutorBasedScheduler$transform$$inlined$forEach$lambda$.call(BuildElements.kt:)
at com.android.build.gradle.internal.scope.BuildElements$ExecutorBasedScheduler$transform$$inlined$forEach$lambda$.call(BuildElements.kt:)
at java.util.concurrent.ForkJoinTask$AdaptedCallable.exec(ForkJoinTask.java:)
at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:)
at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:)
at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:)
at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:)
Caused by: com.android.ide.common.signing.KeytoolException: Failed to read key key0 from store "/Users/Rubert/Desktop/xxxxx.jks": Cannot recover key
at com.android.ide.common.signing.KeystoreHelper.getCertificateInfo(KeystoreHelper.java:)
at com.android.build.gradle.internal.packaging.IncrementalPackagerBuilder.withSigning(IncrementalPackagerBuilder.java:)
... more
Caused by: java.security.UnrecoverableKeyException: Cannot recover key
at sun.security.provider.KeyProtector.recover(KeyProtector.java:)
at sun.security.provider.JavaKeyStore.engineGetKey(JavaKeyStore.java:)
at sun.security.provider.JavaKeyStore$JKS.engineGetKey(JavaKeyStore.java:)
at java.security.KeyStoreSpi.engineGetEntry(KeyStoreSpi.java:)
at sun.security.provider.KeyStoreDelegator.engineGetEntry(KeyStoreDelegator.java:)
at sun.security.provider.JavaKeyStore$DualFormatJKS.engineGetEntry(JavaKeyStore.java:)
at java.security.KeyStore.getEntry(KeyStore.java:)
at com.android.ide.common.signing.KeystoreHelper.getCertificateInfo(KeystoreHelper.java:)
... more

密码错了,重新输一下

android studio 各种问题的更多相关文章

  1. Android Studio配置 AndroidAnnotations——Hi_博客 Android App 开发笔记

    以前用Eclicps 用习惯了现在 想学学 用Android Studio 两天的钻研终于 在我电脑上装了一个Android Studio 并完成了AndroidAnnotations 的配置. An ...

  2. Android Studio 多个编译环境配置 多渠道打包 APK输出配置

    看完这篇你学到什么: 熟悉gradle的构建配置 熟悉代码构建环境的目录结构,你知道的不仅仅是只有src/main 开发.生成环境等等环境可以任意切换打包 多渠道打包 APK输出文件配置 需求 一般我 ...

  3. Android Studio —— 重装 HAXM

    Android Studio -- 重装 HAXM 版权声明:本文为博主原创文章,未经博主允许不得转载. 微博:厉圣杰 文中如有纰漏,欢迎大家留言指出. Android SDK 自带模拟器一直以慢.卡 ...

  4. android studio 使用 jni 编译 opencv 完整实例 之 图像边缘检测!从此在andrid中自由使用 图像匹配、识别、检测

    目录: 1,过程感慨: 2,运行环境: 3,准备工作: 4,编译 .so 5,遇到的关键问题及其解决方法 6,实现效果截图. (原创:转载声明出处:http://www.cnblogs.com/lin ...

  5. 使用 Android Studio 检测内存泄漏与解决内存泄漏问题

    本文在腾讯技术推文上 修改 发布. http://wetest.qq.com/lab/view/63.html?from=ads_test2_qqtips&sessionUserType=BF ...

  6. 【详细教程】论android studio中如何申请百度地图新版Key中SHA1值

    一.写在前面 现在越来越多的API接口要求都要求提供我们的项目SHA1值,开发版目前还要求不高,但是发布版是必定要求的.而目前定位在各大APP中也较为常见,当下主流的百度地图和高德地图都在申请的时候会 ...

  7. 【走过巨坑】android studio对于jni调用及运行闪退无法加载库的问题解决方案

    相信很多小伙伴都在android开发中遇到调用jni的各种巨坑,因为我们不得不在很多地方用到第三方库so文件,然而第三方官方通常都只会给出ADT环境下的集成方式,而谷歌亲儿子android studi ...

  8. android studio你可能忽视的细节——启动白屏?drawable和mipmap出现的意义?这里都有!!!

    android studio用了很久了,也不知道各位小伙伴有没有还在用eclipse的,如果还有,楼主真心推荐转到android studio来吧,毕竟亲儿子,你会知道除了启动速度稍微慢些,你找不到一 ...

  9. 解决Android Studio 无法显示Layout视图问题

    在Android Studio 当中,如果你选择的SDK的版本 与你所显示的视图版本不一致时,会出现这个错误 Exception raised during rendering:com/android ...

  10. Android Studio快捷键

      一.android studio 默认快捷键 刚开始接触一款开发软件,想必很想了解它的快捷方式,这会对你的编程起到很好的帮助,提高工作效率,接下来给你介绍下Android Studio一些常用的快 ...

随机推荐

  1. How can i use iptables save on centos 7?

    I installed CentOS 7 with minimal configuration (os + dev tools). I am trying to open 80 port for ht ...

  2. codewars 随手记

    1.ES6数组遍历语法糖=> 在C#Linq里曾经用过,因此也不是很陌生. var range = Array.apply(null, Array(x)).map((_, i) => ++ ...

  3. magento的url中 去掉多余的目录层级

    有时我们需要仅仅显示一层目录的URL路径.而不要出现多个路径的现实,我们可以用以下方法修改: Edit  /app/code/core/Mage/Catalog/Model/Url.php 找到632 ...

  4. asp.net fileupload上传大文件时提示404.13错误

    IIS 7 默认文件上传大小时30M 要突破这个限制,需要做如下操作: 1. 修改IIS的applicationhost.config     打开 %windir%\system32\inetsrv ...

  5. 关于discuz“终于解决“头像保存过程中发生网络错误,请重试"”的解决方法

    1 php.ini里面allow_url_fopen = On2 将php.ini中的;upload_tmp_dir = 该行的注释符,即前面的分号“:”去掉,使该行在php.ini文档中起作用.up ...

  6. 使用qmake构建程序(有关.pro和.vcproj编译选项对应关系)

    houjinxin 为了方便统一构建,准备使用qmake构建所有的vc工程,无论是否使用了Qt库,可是在网上找了几天,有几个选项根本就不知道怎么在pro里面配置,才能生成预期的vcproj文件... ...

  7. Unity3D-ScrollRect 各参数的代码引用以及作用

    版本Unity4.6: 以下为ScrollRect面板上各选项 对应 在代码里的属性: content(RectTransform): scrollRect的RectTransform组件,即滑动面板 ...

  8. Java - 处理某些图片泛红

    参考博文: http://blog.csdn.net/kobejayandy/article/details/44346809 http://blog.csdn.net/shixing_11/arti ...

  9. 水平ListView类

    package com.hztbc.android.HorizontalListView; /* * HorizontalListView.java v1.5 * *  * The MIT Licen ...

  10. to_date & to_char

    在oracle数据库中,有这么两个数据格式转换函数, to_date & to_char 这两个函数都可以将日期格式更改,但是一般都用前者,百度搜索中有个例子: select * from T ...