• 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

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 267 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 jwilliam 3.9k points
0 votes
1 answer 54 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 jwilliam 3.9k points
0 votes
1 answer 20 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 Raphael Pacheco 4.9k points
0 votes
1 answer 5 views
When i am applying Google OBB downloader this problems happens. I am browsing serveral forums however didn’t get the desired result. Anyone here give me the specific solution.
asked Sep 14 Daniel Anderson 4k points