"We offer new support options and therefor the forums are now in read-only mode! Please check out our Support Center for more information." - Vuforia Engine Team

Resource re-package Failed!

Hello, I'm having this error (detailed below) when trying to build from Unity for Android. [QUOTE]Resource re-package Failed! package -v -f -m -J gen -M AndroidManifest.xml -S "res" -I "C:/Development/Android/android-sdk-windows/platforms/android-10\android.jar" -F bin/resources.ap_ Configurations: (default) hdpi Files: drawable\app_icon.png Src: () res\drawable\app_icon.png Src: (hdpi) res\drawable-hdpi\app_icon.png values\strings.xml Src: () res\values\strings.xml AndroidManifest.xml Src: () AndroidManifest.xml Resource Dirs: Type drawable drawable\app_icon.png Src: () res\drawable\app_icon.png Src: (hdpi) res\drawable-hdpi\app_icon.png Type values values\strings.xml Src: () res\values\strings.xml Including resources from package: C:\Development\Android\android-sdk-windows\platforms\android-10\android.jar applyFileOverlay for drawable applyFileOverlay for layout applyFileOverlay for anim applyFileOverlay for animator applyFileOverlay for interpolator applyFileOverlay for xml applyFileOverlay for raw applyFileOverlay for color applyFileOverlay for menu applyFileOverlay for mipmap Processing image: res\drawable\app_icon.png (processed image res\drawable\app_icon.png: 96% size of source) Processing image: res\drawable-hdpi\app_icon.png (processed image res\drawable-hdpi\app_icon.png: 97% size of source) (new resource id app_icon from drawable\app_icon.png #generated) (new resource id app_icon from hdpi\drawable\app_icon.png #generated) AndroidManifest.xml:13: error: Error: String types not allowed (at 'configChanges' with value 'fontScale|keyboard| keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode| touchscreen'). AndroidManifest.xml:19: error: Error: String types not allowed (at 'configChanges' with value 'fontScale|keyboard| keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode| touchscreen'). AndroidManifest.xml:21: error: Error: String types not allowed (at 'configChanges' with value 'fontScale|keyboard| keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode| touchscreen'). AndroidManifest.xml:25: error: Error: String types not allowed (at 'configChanges' with value 'fontScale|keyboard| keyboardHidden|locale|mnc|mcc|navigation|orientation|screenLayout|screenSize|smallestScreenSize|uiMode| touchscreen'). UnityEngine.Debug:LogError(Object) PostProcessAndroidPlayer:PostProcess(BuildTarget, String, String, String, String, String, String, BuildOptions) (at C:/BuildAgent/work/842f9557127e852/Editor/Mono/BuildPipeline/PostProcessAndroidPlayer.cs:210) UnityEditor.HostView:OnGUI()[/QUOTE] I have the teapot example working via eclipse, but I can't get anything to work directly from Unity. I'm using windows7, and QCAR version 1.5 I have Android SDK downloaded for 2.3.3, but do I need that - maybe I should only have SDK for 2.2 installed? Any help much appreciated.

Hi Kim, I am using 3.4.2f. I can compile a Unity Android project without problem if the Qcar plugin isn't installed. I rebuilt the entire development environment this morning, on a clean install of windows 7, just in case my usual workstation had a problem of some kind.

DavidBeard

Thu, 03/01/2012 - 00:49

If you've installed multiple Android SDKs, you'll want to confirm that your Unity installation points to the newest one. Check Unity > Preferences > External Tools > Android SDK Location. That configChanges parsing error is associated w/ earlier versions of the Android SDK.

Hello David, Unity is pointing to C:\Development\Android\android-sdk-windows as per the guidelines. I am only using SDK r16. Also I have NDK r7b. I have 2 SDK platforms, downloaded via ADT/Eclipse - 2.2 and 2.3.3, as Unity asks for 2.3.3 to be installed as a minimum.

Hi, Also please note the 3rd line of the repackage error: [QUOTE]"C:/Development/Android/android-sdk-windows/platforms/android-10\android.jar" -F bin/resources.ap_ [/QUOTE] So surely Unity is finding the Android SDK without problem?

We are a couple of guys at my campus having the exact same problem as you. Will get back to you if we find a solution but will appreciate it if some of the more experience guys have a peace of advice or five.

DavidBeard

Fri, 03/02/2012 - 00:05

Yes. It looks like it's finding the correct SDK. Can you try replacing the androidmanifest.xml file w/ one from your prior 1.0.6 installation? That may tell us whether there is a versioning conflict prompting the error on configChanges.

I installed api level 14. Now i can create APK without Resource re-package Failed! error. Now the fiducials is not tracked and nothing is happening when compiling it on the phone

Make sure you set the dataset to load and activate on the ARCamera (under the DataSetLoadBehaviour component). If you're still having trouble I suggest trying one of the samples. - Kim

Installing the AP 4.0 followed by ksiva instructions worked perfectly for me. No more errors here and everything is working. Thanks for the replies. Im using 1.5 so no need to downgrade to 1.0.6 either.