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