- Home /
Problem in android plugin creation.?
Hi all am trying to make a plugin for android unity. so, i am trying a sample compass project from this site http://randomactsofdev.wordpress.com/2011/08/19/accessing-the-android-compass-through-unity-3d/
i did the same steps what they're providing. its came correct only. but when i build i got this error. if any one knows about it pls provide the suggestions.
Resource re-package Failed! package -v -f -m -J gen -M AndroidManifest.xml -S "res" -I "/Users/sriram/android-sdks/platforms/android-15/android.jar" -F bin/resources.ap_
Configurations: (default)
Files: drawable/app_icon.png Src: () res/drawable/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 Type values values/strings.xml Src: () res/values/strings.xml
Including resources from package: /Users/sriram/android-sdks/platforms/android-15/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: 68% size of source) (new resource id app_icon from drawable/app_icon.png #generated)
AndroidManifest.xml:4: error: Error: No resource found that matches the given name (at 'icon' with value '@drawable/icon'). UnityEngine.Debug:LogError(Object) PostProcessAndroidPlayer:PostProcess(BuildTarget, String, String, String, String, String, String, BuildOptions) UnityEditor.BuildPlayerWindow:BuildPlayerAndRun()
the same problem already happen for some peoples. but i couldn't get any exact answer from that.
Thanks in advance.