Skip to content Skip to sidebar Skip to footer

Unity3d - Failed To Re-package Resources | Android Apk

I'm trying to compile a simple game without any additional plugin, but I am facing the errors below: CommandInvokationFailure: Failed to re-package resources. See the Console for d

Solution 1:

It could be the spaces in the Android SDK and NDK path. Unity's update logs always says that this problem is fixed but that is not true. It fails sometimes.

  1. Make sure that there are no spaces in your SDK and NDK path. So create a folder called AndroidSDK and AndroidNDK in the C directory.

  2. Copy your Android-sdk folder to the C:/AndroidSDK directory. Copy your Android-ndk to the C:/AndroidNDK folder.

Now, your SDK path should look like this:

C:/AndroidSDK/Android-sdk
C:/AndroidNDK/Android-ndk

No spaces more.

  1. Update your Android SDK and NDK paths in the Unity Editor.

If that fails, download Unity 5.4 beta.

EDIT:

Re-download SDK. Then Build the Project for Android, it will show an error and ask you to update SDK. click on the "Update Android SDK" buttom. Unity will Automatically update your SDK. Your SDK should then look like something below.

enter image description here

Post a Comment for "Unity3d - Failed To Re-package Resources | Android Apk"