When I try to run an Android emulator, I get the following error screen. The same occurs when I export the apk. When I go to the directory where the apk will be saved, the apk file is not there.
Thank you,
christophe
I had the same issue, this problem will be fixed by doing the below step.
Go to
File->Setting->Gradle->Gradle Vm Option
For Android Studio 1.2
File->Setting->Build, Deployment &Execution->Build Tools->Gradle->Gradle Vm Option
, Now put this value -Xmx256m
in the box, and hit the Apply button.
Note the error will usually be listed as the first line (improperly formatted for Android Studio Gradle console such as:
AGPBI: {"kind":"error","text":"Float types not allowed (at \u0027icon_alpha_active\u0027 with value \u00270.75\u0027).","sources":[{"file":"/Users/mingsheng/path/to/my/errenous/integers.xml","position":{"startLine":5,"startColumn":38,"startOffset":272,"endColumn":42,"endOffset":276}}],"original":""}
Where "text" = error message, "sources: file" = errenous filepath/name
In this example, I have entered a Float value in the integers file.
This dialog box with empty cause also comes when there is some error in your resource(res) directory. Check for any error in layout files etc.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With