• Hello [name]! Thanks for joining the GMC. Before making any posts in the Tech Support forum, can we suggest you read the forum rules? These are simple guidelines that we ask you to follow so that you can get the best help possible for your issue.

Android finished with non-zero exit value 1

Can someone tell me what this means i cannot compile the android apk

this is the error im getting

* What went wrong:
Execution failed for task ':com.COMPANYNAME.APPNAME: processArmeabi-v7aReleaseResources'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'Q:\FOLDER\sdk ndk\adt-bundle-windows-x86_64-20140702\sdk\build-tools\24.0.0\aapt.exe'' finished with non-zero exit value 1
 
B

bunkerz

Guest
Try changing your cache and temp folder location to as close as possible to root C:. I changed mine to C:\Gamemaker

Go to File -> Preferences -> General and change it there
 
M

MaikForte

Guest
Has anyone already found the solution? Changing the cache and temp folder location didn't work for me.
 
P

PlayLight

Guest
You'll need to post your full log (in spoilers or a link to pastbin) if you want to get help on this.
The error on the OP could be due to a number of config conflictions.
Posting your full log is always very helpful, and provides us with more information to find the problem quickly.

If you're using extensions, this is also very important information.
(Though this error in particular is build config related)
 
M

MaikForte

Guest
I actually have the exact same logs except this part "24.0.0\aapt.exe". I'm using 25.0.0
 
D

davdd

Guest
Hi, I'm having the same problem too, I think. Here's my console:

Create started: 9:51:03 PM
"C:\Users\david\AppData\Roaming\GameMaker-Studio\GMAssetCompiler.exe" /fU="C:\Gamemaker\temp\gm_ttt_58288\a77230.txt" /c /m=android /config="Default" /tgt=8 /obob=True /obpp=False /obru=True /obes=False /i=3 /cvm /tp=1024 /mv=1 /iv=0 /rv=0 /bv=1757 /gn="sytems_proj-1" /td="C:\Gamemaker\temp" /cd="C:\GameMaker\Cache" /sh=True /dbgp="6502" /hip="25.187.129.255" /hprt="51268" /optionsini="C:\Gamemaker\temp\gm_ttt_58288\gm_ttt_10039\sytems_proj-1.ini" /o="C:\Gamemaker\temp\gm_ttt_58288\gm_ttt_10039" "C:\Users\david\Documents\GameMaker\Projects\sytems_proj-1.gmx\sytems_proj-1.project.gmx"

Reading project file....finished.
Compile Constants...finished.
Remove DnD...finished.
Compile Scripts...finished.
Compile Objects...finished.
Compile Timelines...finished.
Compile Triggers...finished.
Compile Rooms...finished.
Compile Extensions...finished.
Final Compile...finished.
Saving IFF file... C:\Gamemaker\temp\gm_ttt_58288\gm_ttt_10039\sytems_proj-1.droid
Writing Chunk... GEN8
Writing Chunk... OPTN
Writing Chunk... EXTN
Writing Chunk... SOND
Writing Chunk... AGRP
Writing Chunk... SPRT
Writing Chunk... BGND
Writing Chunk... PATH
Writing Chunk... SCPT
Writing Chunk... SHDR
Writing Chunk... FONT
Writing Chunk... TMLN
Writing Chunk... OBJT
Writing Chunk... ROOM
Writing Chunk... DAFL
Writing Chunk... TPAGE
Writing Chunk... CODE
Writing Chunk... VARI
Writing Chunk... FUNC
Writing Chunk... STRG
Writing Chunk... TXTR
0 Compressing texture... writing texture texture_0.png...
1 Compressing texture... writing texture texture_1.png...
2 Compressing texture... writing texture texture_2.png...
Writing Chunk... AUDO
Writing Chunk... SCPT
Writing Chunk... DBGI
Writing Chunk... INST
Writing Chunk... LOCL
Writing Chunk... STRG
Stats : GMA : Elapsed=1443.0826
Stats : GMA : sp=41,au=0,bk=1,pt=0,sc=71,sh=0,fo=7,tl=0,ob=26,ro=6,da=0,ex=1,ma=0,fm=0xD8662620
cmd /c ""C:\Users\david\AppData\Roaming\GameMaker-Studio\Android\runner\gradle\gradlew"" build -x assembleDebug

:com.companyname.sytems_proj-1:preBuild UP-TO-DATE
:com.companyname.sytems_proj-1:preReleaseBuild UP-TO-DATE
:com.companyname.sytems_proj-1:checkReleaseManifest
:com.companyname.sytems_proj-1:preDebugBuild UP-TO-DATE
:com.companyname.sytems_proj-1:prepareComAndroidSupportMultidex101Library UP-TO-DATE
:com.companyname.sytems_proj-1:prepareComAndroidSupportSupportV42321Library UP-TO-DATE
:com.companyname.sytems_proj-1:prepareReleaseDependencies
:com.companyname.sytems_proj-1:compileReleaseAidl UP-TO-DATE
:com.companyname.sytems_proj-1:compileReleaseRenderscript
:com.companyname.sytems_proj-1:generateReleaseBuildConfig UP-TO-DATE
:com.companyname.sytems_proj-1:generateReleaseAssets UP-TO-DATE
:com.companyname.sytems_proj-1:mergeReleaseAssets
:com.companyname.sytems_proj-1:generateReleaseResValues UP-TO-DATE
:com.companyname.sytems_proj-1:generateReleaseResources
:com.companyname.sytems_proj-1:mergeReleaseResources UP-TO-DATE
:com.companyname.sytems_proj-1:processArmeabi-v7aReleaseManifest
Warning: C:\Gamemaker\Cache\sytems_proj-1\Android\Default\com.companyname.sytems_proj-1\src\main\AndroidManifest.xml:24:3-63:17 Warning:
application@android:label was tagged at AndroidManifest.xml:24 to replace other declarations but no other declaration present
Warning: C:\Gamemaker\Cache\sytems_proj-1\Android\Default\com.companyname.sytems_proj-1\src\main\AndroidManifest.xml:25:5-31:16 Warning:
activity#com.companyname.sytems_proj-1.RunnerActivity@android:label was tagged at AndroidManifest.xml:25 to replace other declarations but no other declaration present
C:\Gamemaker\Cache\sytems_proj-1\Android\Default\com.companyname.sytems_proj-1\src\main\AndroidManifest.xml:24:3-63:17 Warning:
application@android:label was tagged at AndroidManifest.xml:24 to replace other declarations but no other declaration present
C:\Gamemaker\Cache\sytems_proj-1\Android\Default\com.companyname.sytems_proj-1\src\main\AndroidManifest.xml:25:5-31:16 Warning:
activity#com.companyname.sytems_proj-1.RunnerActivity@android:label was tagged at AndroidManifest.xml:25 to replace other declarations but no other declaration present
:com.companyname.sytems_proj-1:processArmeabi-v7aReleaseResourcesC:\Gamemaker\Cache\sytems_proj-1\Android\Default\com.companyname.sytems_proj-1\build\intermediates\manifests\full\armeabi-v7a\release\AndroidManifest.xml:2 : Tag <manifest> attribute package has invalid character '-'.
C:\Gamemaker\Cache\sytems_proj-1\Android\Default\com.companyname.sytems_proj-1\build\intermediates\manifests\full\armeabi-v7a\release\AndroidManifest.xml:32 : Tag <application> attribute name has invalid character '-'.
C:\Gamemaker\Cache\sytems_proj-1\Android\Default\com.companyname.sytems_proj-1\build\intermediates\manifests\full\armeabi-v7a\release\AndroidManifest.xml:36 : Tag <activity> attribute name has invalid character '-'.
C:\Gamemaker\Cache\sytems_proj-1\Android\Default\com.companyname.sytems_proj-1\build\intermediates\manifests\full\armeabi-v7a\release\AndroidManifest.xml:49 : Tag <activity> attribute name has invalid character '-'.

FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':com.companyname.sytems_proj-1:processArmeabi-v7aReleaseResources'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Users\david\AppData\Local\Android\android-sdk\build-tools\25.0.0\aapt.exe'' finished with non-zero exit value 1

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 7.463 secs
Create finished: 9:51:14 PM
 
P

PlayLight

Guest
Hi, I'm having the same problem too, I think. Here's my console:

Create started: 9:51:03 PM
"C:\Users\david\AppData\Roaming\GameMaker-Studio\GMAssetCompiler.exe" /fU="C:\Gamemaker\temp\gm_ttt_58288\a77230.txt" /c /m=android /config="Default" /tgt=8 /obob=True /obpp=False /obru=True /obes=False /i=3 /cvm /tp=1024 /mv=1 /iv=0 /rv=0 /bv=1757 /gn="sytems_proj-1" /td="C:\Gamemaker\temp" /cd="C:\GameMaker\Cache" /sh=True /dbgp="6502" /hip="25.187.129.255" /hprt="51268" /optionsini="C:\Gamemaker\temp\gm_ttt_58288\gm_ttt_10039\sytems_proj-1.ini" /o="C:\Gamemaker\temp\gm_ttt_58288\gm_ttt_10039" "C:\Users\david\Documents\GameMaker\Projects\sytems_proj-1.gmx\sytems_proj-1.project.gmx"

Reading project file....finished.
Compile Constants...finished.
Remove DnD...finished.
Compile Scripts...finished.
Compile Objects...finished.
Compile Timelines...finished.
Compile Triggers...finished.
Compile Rooms...finished.
Compile Extensions...finished.
Final Compile...finished.
Saving IFF file... C:\Gamemaker\temp\gm_ttt_58288\gm_ttt_10039\sytems_proj-1.droid
Writing Chunk... GEN8
Writing Chunk... OPTN
Writing Chunk... EXTN
Writing Chunk... SOND
Writing Chunk... AGRP
Writing Chunk... SPRT
Writing Chunk... BGND
Writing Chunk... PATH
Writing Chunk... SCPT
Writing Chunk... SHDR
Writing Chunk... FONT
Writing Chunk... TMLN
Writing Chunk... OBJT
Writing Chunk... ROOM
Writing Chunk... DAFL
Writing Chunk... TPAGE
Writing Chunk... CODE
Writing Chunk... VARI
Writing Chunk... FUNC
Writing Chunk... STRG
Writing Chunk... TXTR
0 Compressing texture... writing texture texture_0.png...
1 Compressing texture... writing texture texture_1.png...
2 Compressing texture... writing texture texture_2.png...
Writing Chunk... AUDO
Writing Chunk... SCPT
Writing Chunk... DBGI
Writing Chunk... INST
Writing Chunk... LOCL
Writing Chunk... STRG
Stats : GMA : Elapsed=1443.0826
Stats : GMA : sp=41,au=0,bk=1,pt=0,sc=71,sh=0,fo=7,tl=0,ob=26,ro=6,da=0,ex=1,ma=0,fm=0xD8662620
cmd /c ""C:\Users\david\AppData\Roaming\GameMaker-Studio\Android\runner\gradle\gradlew"" build -x assembleDebug

:com.companyname.sytems_proj-1:preBuild UP-TO-DATE
:com.companyname.sytems_proj-1:preReleaseBuild UP-TO-DATE
:com.companyname.sytems_proj-1:checkReleaseManifest
:com.companyname.sytems_proj-1:preDebugBuild UP-TO-DATE
:com.companyname.sytems_proj-1:prepareComAndroidSupportMultidex101Library UP-TO-DATE
:com.companyname.sytems_proj-1:prepareComAndroidSupportSupportV42321Library UP-TO-DATE
:com.companyname.sytems_proj-1:prepareReleaseDependencies
:com.companyname.sytems_proj-1:compileReleaseAidl UP-TO-DATE
:com.companyname.sytems_proj-1:compileReleaseRenderscript
:com.companyname.sytems_proj-1:generateReleaseBuildConfig UP-TO-DATE
:com.companyname.sytems_proj-1:generateReleaseAssets UP-TO-DATE
:com.companyname.sytems_proj-1:mergeReleaseAssets
:com.companyname.sytems_proj-1:generateReleaseResValues UP-TO-DATE
:com.companyname.sytems_proj-1:generateReleaseResources
:com.companyname.sytems_proj-1:mergeReleaseResources UP-TO-DATE
:com.companyname.sytems_proj-1:processArmeabi-v7aReleaseManifest
Warning: C:\Gamemaker\Cache\sytems_proj-1\Android\Default\com.companyname.sytems_proj-1\src\main\AndroidManifest.xml:24:3-63:17 Warning:
application@android:label was tagged at AndroidManifest.xml:24 to replace other declarations but no other declaration present
Warning: C:\Gamemaker\Cache\sytems_proj-1\Android\Default\com.companyname.sytems_proj-1\src\main\AndroidManifest.xml:25:5-31:16 Warning:
activity#com.companyname.sytems_proj-1.RunnerActivity@android:label was tagged at AndroidManifest.xml:25 to replace other declarations but no other declaration present
C:\Gamemaker\Cache\sytems_proj-1\Android\Default\com.companyname.sytems_proj-1\src\main\AndroidManifest.xml:24:3-63:17 Warning:
application@android:label was tagged at AndroidManifest.xml:24 to replace other declarations but no other declaration present
C:\Gamemaker\Cache\sytems_proj-1\Android\Default\com.companyname.sytems_proj-1\src\main\AndroidManifest.xml:25:5-31:16 Warning:
activity#com.companyname.sytems_proj-1.RunnerActivity@android:label was tagged at AndroidManifest.xml:25 to replace other declarations but no other declaration present
:com.companyname.sytems_proj-1:processArmeabi-v7aReleaseResourcesC:\Gamemaker\Cache\sytems_proj-1\Android\Default\com.companyname.sytems_proj-1\build\intermediates\manifests\full\armeabi-v7a\release\AndroidManifest.xml:2 : Tag <manifest> attribute package has invalid character '-'.
C:\Gamemaker\Cache\sytems_proj-1\Android\Default\com.companyname.sytems_proj-1\build\intermediates\manifests\full\armeabi-v7a\release\AndroidManifest.xml:32 : Tag <application> attribute name has invalid character '-'.
C:\Gamemaker\Cache\sytems_proj-1\Android\Default\com.companyname.sytems_proj-1\build\intermediates\manifests\full\armeabi-v7a\release\AndroidManifest.xml:36 : Tag <activity> attribute name has invalid character '-'.
C:\Gamemaker\Cache\sytems_proj-1\Android\Default\com.companyname.sytems_proj-1\build\intermediates\manifests\full\armeabi-v7a\release\AndroidManifest.xml:49 : Tag <activity> attribute name has invalid character '-'.

FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':com.companyname.sytems_proj-1:processArmeabi-v7aReleaseResources'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'C:\Users\david\AppData\Local\Android\android-sdk\build-tools\25.0.0\aapt.exe'' finished with non-zero exit value 1

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 7.463 secs
Create finished: 9:51:14 PM

Tag <application> attribute name has invalid character '-'.
Remove the hyphen from your packagename.
com.companyname.sytems_proj-1 <<-- Bad davdd
com.companyname.sytems_proj1 <<-- Good davdd
;)
 
Last edited by a moderator:
Top