Aapt.exe, Android.jar Error [Insolvable Problem]

When i want build apk Unity Error. I updated SDK,Java,Jar but still same problem continuation and i re-installed SDK,Java,Jar but still same problem. How can i fix this problem ?

Error building Player: CommandInvokationFailure: Failed to re-package resources. See the Console for details.
C:\Users\Mehmet Ali\AppData\Local\Android\android-sdk\build-tools\23.0.0_rc2\aapt.exe package --auto-add-overlay -v -f -m -J gen -M AndroidManifest.xml -S “res” -I “C:/Users/Mehmet Ali/AppData/Local/Android/android-sdk/platforms/android-22\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 ‘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\Mehmet Ali\AppData\Local\Android\android-sdk\platforms\android-22\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
((pprroocceesssseedd iimmaaggee rreess\ddrraawwaabbllee–lxdhpdip\ia\papp_pi_ciocno.np.npgn:g : 8604%% ssiizzee ooff ssoouurrccee))

(processed image res\drawable\app_icon.png: 74% size of source)
(processed image res\drawable-hdpi\app_icon.png: 67% size of source)
Processing image: res\drawable-xxhdpi\app_icon.png
Processing image: res\drawable-xxxhdpi\app_icon.png
(processed image res\drawable-xxhdpi\app_icon.png: 60% size of source)
(processed image res\drawable-xxxhdpi\app_icon.png: 60% 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)
]

Nobody can help me ?

did you copy the google play services plugin from the original folder of the google play services download…in tools? did you update the version number in your manifest file ? things are going wrong with your project manifest file …ie…version of the google play services is not matching the version number in your manifest file / or you’re missing a small XML file that goes into the plugins folder under Android folder, that plugin version you are using.they have to match exactly…

simply put that error is telling me one thing , you have no integer value for the Google Play plugin version number.

you have two choices you can create that XML file and put it into the plugins folder under Res or hardcode the version number in the header of the manifest file look , for the tag Google version number, take out the @ integer and put in hard coded , the current version number

you need to search " installing Google Play services in unity3d " find the link easiest to understand the step-by-step process , you need to wrap your head around the whole thing .until you can understand what’s really going on , you’re going to be struggling and struggling…I did for about 6 months until, I just took one full day and went step by step, if I didn’t understand , I went back , until I can wrap my head around every single process that goes in to developing for Android and connecting to Google Play services…

it took me 5 days to figure out that I was using the wrong key for the Google Play services so if I’m running into 5 day problems that I can’t solve , you shouldn’t feel too bad…it is tough!

1 Like