• Register
0 votes

Problem :

I want to implement the Unity's IAP in my game. At first build I encountered an error for not compatible SDK for my Android.
Than I updated the SDK from 23 to 24. After updating it when I tried to build it, I faced another error as follows :

Code (error):

CommandInvokationFailure: Failed to re-package resources.

C:\Android\sdk\build-tools\24.0.0\aapt.exe package --auto-add-overlay -v -f -m -J "gen" -M "AndroidManifest.xml" -S "res" -I "C:/Android/sdk\platforms\android-24\android.jar" -F bin/resources.ap_ --extra-packages com.unity.purchasing:com.android.vending.billing:com.unity.purchasing.googleplay -S "D:\Projects\We Build\Temp\StagingArea\android-libraries\common\res" -S "D:\Projects\We Build\Temp\StagingArea\android-libraries\GoogleAIDL\res" -S "D:\Projects\We Build\Temp\StagingArea\android-libraries\GooglePlay\res"






exit code: -1073741819

UnityEditor.Android.Command.Run (System.Diagnostics.ProcessStartInfo psi, UnityEditor.Android.WaitingForProcessToExit waitingForProcessToExit, System.String errorMsg)

UnityEditor.Android.PostProcessor.Tasks.TasksCommon.Exec (System.String command, System.String args, System.String workingdir, System.String errorMsg, Int32 retriesOnFailure)


(nothing inside the "stderr" and "stdout".)

My Platform : Android
My Unity Version : 5.5.0f3 (Personal)
My Unity IAP Version : 1.13.1

6 5 3
7,540 points

Please log in or register to answer this question.

1 Answer

0 votes

Solution :

I have also faced the same issue in the recent past. I did lot of research on it to get solution on the issue.  I did following steps to resolve the issue.

1) Find and open the SDK Manager.exe at android-sdk folder.

2) Under tool, Install the Android SDK tools 25.1.7 and Android SDK Platfomr-tools 24.

3) Lastly just uninstall your Android SDK Build-tools 24 and install 23.0.1 instead.

Done your all issues are resolved.

9 7 4
38,600 points

Related questions

0 votes
1 answer 10 views
Problem: commandinvokationfailure: unable to merge android manifests. see the console for more details.
asked Feb 23 Muneeb Saadii 130k points
0 votes
1 answer 1.2K views
Problem : I am following the Building Unity game for the Android device for a testing purpose I have followed all the instruction but I am facing below error in the end. My Error: UnityEditor.BuildPlayerWindow+BuildMethodException: Build failed with errors. ... 0x00050] in C:\buildslave\unity\build\Editor\Mono\BuildPlayerWindowBuildMethods.cs:83 UnityEditor.HostView:OnGUI() How to fix above error?
asked Jan 21, 2020 jwilliam 3.9k points
0 votes
1 answer 3 views
Problem Please show me how to resolve this, "Some file crunching failed, see logs for details."
asked Apr 6 salim1 39k points
0 votes
1 answer 89 views
Problem : I am facing below error in place of maps on my website. “This page didn't load google maps correctly. see the javascript console for technical details.” Any solution on my error?
asked Jan 16, 2020 jwilliam 3.9k points
0 votes
1 answer 2 views
Problem: What is the main reason of compilation failed; see the compiler error output for details.
asked 2 days ago jamuna1 18.1k points
0 votes
1 answer 48 views
0 votes
1 answer 103 views
Problem: I am trying to compile my build.xml file but I am facing the below error: BUILD FAILED C:\Users\workspace\testrepo\src\build.xml:36: Compile failed; see the compiler error output for details.     at org.apache.tools.ant.taskdefs.Javac.compile(Javac.java:1150) ... to Java and Ant so unable to even understand the above error so looking for someone who can help me in fixing the above error.
asked Jul 24, 2020 Raphael Pacheco 4.9k points
0 votes
1 answer 5 views
c# unity pick up choice
asked Mar 19 Diana20 920 points
1 vote
1 answer 7 views
Problem: Please help me. How can I solve it? validation failed for one or more entities. see 'entityvalidationerrors' property for more details
asked Mar 13 MUHAMMAD MUNEEB 83k points