Android Studio Failure:build failed with an exception. * What's went wrong:execution failed for task ': Compiledebugaidl '. Questions and Answers

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.