• Register
0 votes
36 views

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"

stderr[

 

]

stdout[

]

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)

UnityEditor.HostView:OnGUI()

(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 692 views
692 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 63 views
63 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 25 views
0 votes
1 answer 39 views
39 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 11 views
11 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, 2020 Daniel Anderson 4k points
0 votes
0 answers 48 views
48 views
Problem: I have fundamental knowledge related to android and apk-expansion-files. Currently my obb files download in my projects stopped working suddenly for all of my unpublished applications. Please find the error as shown below. Download failed because the resources ... it actually means. Any suggestions from any expert on android on how to make obb files download work will be appreciated!
asked Jun 16, 2020 Raphael Pacheco 4.9k points
0 votes
1 answer 160 views
0 votes
1 answer 869 views
869 views
Problem : I have integrated my app with the Google+ platform as well as the Google+ button so far. Previously the things seem to be working really well, but now I keep on encountering following error message in my logs very often.. 11-30 15:14:58.296: E/ActivityThread(2308): Failed to find provider info for com.google.plus.platform Has anybody faced this issue before? Any clues?
asked Dec 6, 2019 alecxe 7.5k points