Androidstudio compilation appears caused By:java.lang.arrayindexoutofboundsexception:4 one of the reasons

Source: Internet
Author: User

caused By:java.lang.arrayindexoutofboundsexception:4at com.android.tools.profiler.asm.classreader.a (Unknown SOURCE) at Com.android.tools.profiler.asm.classreader.a (Unknown source) at COM.ANDROID.TOOLS.PROFILER.ASM.CLASSREADER.A (Unknown Source) at Com.android.tools.profiler.asm.classreader.b ( Unknown source) at Com.android.tools.profiler.asm.ClassReader.accept (Unknown source) at Com.android.tools.profiler.asm.ClassReader.accept (Unknown Source)

Compile the above problem, you may wish to continue to trace the error log above.

I found the following error log:

* What went wrong:execution failed for task ': Xxx:transformclasseswithprofilers-transformforzhaodebug ' .>-Try:Run With--DEBUG option to get more log output.* Exception is:org.gradle.api.tasks.TaskExecutionException:Execution failed fo R task ': Xxx:transformclasseswithprofilers-transformforzhaodebug '. 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.SkipUpToDateTaskExecuter.execute (skipuptodatetaskexecuter.java:63) at Org.gradle.api.internal.tasks.execution.ResolveTaskOutputCachingStateExecuter.execute ( RESOLVETASKOUTPUTCACHINGSTATEEXECUTER.JAVA:54) at Org.gradle.api.internal.tasks.execution.ValidatingTaskExecuter.execute (validatingtaskexecuter.java:58)

This can be found to be caused by a configuration error with profilers.

Solve:

In Androidstudio run/debug configurations uncheck the following:

Androidstudio compilation appears caused By:java.lang.arrayindexoutofboundsexception:4 one of the reasons

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.