Ref:http://www.cnblogs.com/jingmo0319/p/5781878.html
1.
error:execution failed for task ': App:transformclasseswithdexfordebug ' .> Com.android.build.api.transform.TransformException:com.android.ide.common. process. ProcessException:
Java.util.concurrent.executionexception:com.android.ide.common.process. ProcessException:
Org.gradle. Process.internal.ExecException:Process ' command ' E:\Program files\java\jdk1
This problem often occurs when Androidstudio is doing SVN synchronization, and the initial guess may be caused by a build file that is not needed to synchronize, and clean the project to be solved.
2.
Error:Execution failed for task ‘:app:clean‘.> Unable to delete directory: F:\XXXXXX\app\build\intermediates\res\merged
Indicates that the file is occupied by other files
You can turn off Android studio and delete the corresponding file directly under the corresponding folder. Generally in the case can not be deleted, more than a few retries, you can successfully delete. If you really can't delete it.
You can go to the Task Manager and force the Java process to stop.
And then reopen Android Studio.
3.
Error while Executing:am start-n"Package_name/package_name. Mainactivity "-A Android.intent.action . Main-c android.intent.categorystarting:intent {act=android.intent.action.intent.category3error:activity class {package_name/ Package_name
After uninstalling the app, this error is run again, as the default item is not modified, the app is launched without the installation, so it is incorrect. May be due to the instant run function of as as an exception, the workaround is shown in 7.
4.
03/3017:11:41:launching appno local Changes, not deploying apk$ adb shell am start -n " Package_name/package_name. Mainactivity "-a android.intent .action-c android.intentto process 30598 on device coolpad-coolpad_8297 -coolpad8297-48dfce74
If you modify the configuration file without modifying the code, Androidstudio defaults to no changes to the code, so the APK is not reinstalled.
It is possible that the instant run function of as is abnormal. You can add a carriage return or a few spaces in your code to try it. If not, the solution can be found in 7.
5.
error: ( 1, 1) A problem occurred evaluating project ': App ' .> Failed to Apply plugin [id ' Com.android. Application '] > Gradle version 2.10 is required. Current version is 2.8. If using the gradle wrapper,
try editing the distributionurl in F:\XXX\gradle\wrapper\gradle-wrapper.properties Span class= "Hljs-keyword" >to gradle-2.10-all.zip
Gradle version is too low, then how to upgrade the Gradle version, first open the Android Studio project to find the project directory Gradle\wrapper\ Gradle-wrapper.properties This file, the last sentence distributionurl=http://services.gradle.org/distributions/ Gradle-2.8-all.zip is the Gradle version, modified to 2.10. Run the program again, and Androidstudio will automatically download the 2.10 gradle version.
6.
Error:error Converting bytecodeTo dex:Cause:com.android.dex.DexException:Multiple Dex files define XXX; Error:execution failed for task ': App:transformclasseswithdexforxxxdebug ' .> Com.android.build.api.transform.TransformException:com.android.ide.common. process. ProcessException:
Java.util.concurrent.ExecutionException:com.android.ide.common. process. ProcessException:
Org.gradle. process.internal.ExecException: process ' command ' E:\Program files\java\jdk1. 7. 0_80\bin\ Java.exe ' finished with Non-zero exit value 2
Duplicate library file references, find and delete duplicate libraries, can be resolved.
7.
After modifying the code, click Run, Androidstudio does not recompile, but instead prompts the no changes to deploy, and then launches the app before the change, the code changes completely useless. The initial judgment of this problem is due to Androidstudio's instant run function error. Currently only enable Instant run in Settings (Android studio-preferences\ cmd +,)->build,execution,deployment->instant run The check point of the to hot swap code/resource changes on deploy option is off. This is enabled by default. It's normal when it's gone, and the app will be reinstalled every time you click on it.
8.
Error: (1,0) Your Project pathContains Non-asciiCharacters. This would most LikelycauseThe BuildTo failOnWindows.
PleaseMoveYourProjectToADifferentdirectory.See/HTTPB.Android.com/95744ForDetails.ThisWarningCanBedisabled
by using the command line flag-Dcom . android. build. gradle. overridepathcheck=true, or adding the line Com.android.build.gradle.overridepathcheck=true '
to Gradle. properties filein the project directory.
The project path contains Chinese and the Chinese is replaced.
9.
Error running app:Instant Run requires ‘Tools|Android|Enable ADBintegration‘ to be enabled
Menu bar, Tools-adnroid, enable ADB integration.
Androidstudio Bugs encountered during use