Android Studio Failure:build failed with an exception. * What's went wrong:execution failed for task ': Compiledebugaidl '. Questions and Answers
Complete Problem Tip
Gradle:FAILURE:Build failed with an exception.
*what went wrong:execution failed for task ': Compiledebugaidl '.
>no signature of Method:com.android.ide.common.internal.
Waitableexecutor.waitfortasks () is applicable for argument types: ()
Values:[]possible solutions:waitforalltasks () *try:runwith--stacktrace
option to get the stack trace.
Runwith--info or--debug option to get more log output.
But this tip, we don't know what to do.
Look at Stackover.
Http://stackoverflow.com/questio ... Task-compiledebugai
On the answer I understand, is to go to the root directory (that is, find gradlew.bat this file) run, open the command line run "Gradlew compiledebug--stacktrace"
<ignore_js_op>
Then there will be a complete hint, running the discovery is incredibly character encoding problem, a mouthful of old blood sprayed a land
<ignore_js_op>
Test a bit, change those Chinese to English after the discovery really no problem, my afternoon ah.
The problem is that we can not write Chinese or replace the file with GBK encoding, otherwise compile it will be compiled with GBK encoding, and then error.
But we are Chinese, but we cannot write Chinese. I went on, and finally found the solution on this blog.
http://blog.csdn.net/nono_love_lilith/article/details/9041813
Specifically, in the red circle in the Build.gradle file to add a thing, is the following, let it compile in a UTF-8 way
Tasks.withtype (Compile) {
options.encoding = "UTF-8"
}
<ignore_js_op>
is in the end to join on it, the final compilation through, or to observe my afternoon in silence. And the IDE that hates the pit daddy.
No wonder the gods don't usually use the IDE.
<ignore_js_op>
Android Studio Failure:build failed with an exception. * What's went wrong:execution failed for task ': Compiledebugaidl '. Questions and Answers