Hi,
I have made a game for android platform and it's working fine both in unity editor and in my device.
BUT after i added admob plugin ( [Admob for unity plug in][1]) when I try to build it, unity shows me this error message :
Error building Player: CommandInvokationFailure: Failed to re-package resources. See the Console for details.
C:\Users\Me\AppData\Local\Android\sdk\build-tools\23.0.1\aapt.exe package --auto-add-overlay -v -f -m -J gen -M AndroidManifest.xml -S "res" -I "C:/Users/Me/AppData/Local/Android/sdk/platforms/android-23\android.jar" -F bin/resources.ap_ --extra-packages com.google.unity
stderr[
AndroidManifest.xml:17: error: Error: No resource found that matches the given name (at 'theme' with value '@style/Theme.IAPTheme').
AndroidManifest.xml:19: error: Error: No resource found that matches the given name (at 'value' with value '@integer/google_play_services_version').
]
stdout[
Configurations:
(default)
ldpi-v4
hdpi-v4
xhdpi-v4
xxhdpi-v4
xxxhdpi-v4
Files:
drawable\app_icon.png
Src: () res\drawable\app_icon.png
Src: (ldpi-v4) res\drawable-ldpi\app_icon.png
Src: (hdpi-v4) res\drawable-hdpi\app_icon.png
Src: (xhdpi-v4) res\drawable-xhdpi\app_icon.png
Src: (xxhdpi-v4) res\drawable-xxhdpi\app_icon.png
Src: (xxxhdpi-v4) res\drawable-xxxhdpi\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: (ldpi-v4) res\drawable-ldpi\app_icon.png
Src: (hdpi-v4) res\drawable-hdpi\app_icon.png
Src: (xhdpi-v4) res\drawable-xhdpi\app_icon.png
Src: (xxhdpi-v4) res\drawable-xxhdpi\app_icon.png
Src: (xxxhdpi-v4) res\drawable-xxxhdpi\app_icon.png
Type values
values\strings.xml
Src: () res\values\strings.xml
Including resources from package: C:\Users\Me\AppData\Local\Android\sdk\platforms\android-23\android.jar
applyFileOverlay for drawable
applyFileOverlay for layout
applyFileOverlay for anim
applyFileOverlay for animator
applyFileOverlay for interpolator
applyFileOverlay for transition
applyFileOverlay for xml
applyFileOverlay for raw
applyFileOverlay for color
applyFileOverlay for menu
applyFileOverlay for mipmap
Processing image: res\drawable\app_icon.png
Processing image: res\drawable-ldpi\app_icon.png
Processing image: res\drawable-hdpi\app_icon.png
Processing image: res\drawable-xhdpi\app_icon.png
(processed image res\drawable\app_icon.png: 114% size of source)
Processing image: res\drawable-xxhdpi\app_icon.png
(processed image res\drawable-ldpi\app_icon.png: 122% size of source)
Processing image: res\drawable-xxxhdpi\app_icon.png
(processed image res\drawable-hdpi\app_icon.png: 94% size of source)
(processed image res\drawable-xhdpi\app_icon.png: 97% size of source)
(processed image res\drawable-xxhdpi\app_icon.png: 97% size of source)
(processed image res\drawable-xxxhdpi\app_icon.png: 95% size of source)
(new resource id app_icon from drawable\app_icon.png #generated)
(new resource id app_icon from ldpi-v4\drawable\app_icon.png #generated)
(new resource id app_icon from hdpi-v4\drawable\app_icon.png #generated)
(new resource id app_icon from xhdpi-v4\drawable\app_icon.png #generated)
(new resource id app_icon from xxhdpi-v4\drawable\app_icon.png #generated)
(new resource id app_icon from xxxhdpi-v4\drawable\app_icon.png #generated)
]
I hope someone can help me fix this.
Thank you very much.
NB: I'm using Unity3d 4.62
[1]: https://developers.google.com/admob/android/games#unity_plugin_api
↧