Receiving an Error: AndroidManifest.xml:16: error: No resource found that matches the given name (at 'theme' with value '@style/Theme.IAPTheme').
Hello,
I have searched almost everywhere trying to resolve this problem. Error occurred after enabling IAP. Spent hours an late nights trying to figure this out. I have already tried 3 different versions of Untiy. Currently using 5.6.4p2. I have tried building a new project, tried re-importing IAP and AdMob. Build Tools from 23 to 27, Yes all of them. Tried to reinstall Google Play Services in SDK Manager, tried adding the googleplayservices library manually to plugins. Any other suggestions?
CommandInvokationFailure: Failed to re-package resources.
C:\Users\Jeff\android-sdks\build-tools\27.0.1\aapt.exe package --auto-add-overlay -v -f -m -J "gen" -M "AndroidManifest.xml" -S "res" -I "C:/Users/Jeff/android-sdks\platforms\android-27\android.jar" -F bin/resources.ap_ --extra-packages com.unity.purchasing:com.android.vending.billing:com.google.unity:com.unity.purchasing.googleplay -S "C:\Users\Jeff\Downloads\Android Apps\Emoji Land\Temp\StagingArea\android-libraries\common\res" -S "C:\Users\Jeff\Downloads\Android Apps\Emoji Land\Temp\StagingArea\android-libraries\GoogleAIDL\res" -S "C:\Users\Jeff\Downloads\Android Apps\Emoji Land\Temp\StagingArea\android-libraries\GooglePlay\res"
stderr[
AndroidManifest.xml:16: error: Error: No resource found that matches the given name (at 'theme' with value '@style/Theme.IAPTheme').
AndroidManifest.xml:18: error: Error: No resource found that matches the given name (at 'value' with value '@integer/google_play_services_version').
]
stdout[
Configurations:
(default)
v11
<?xml version="1.0" encoding="utf-8"?>
<!--
This Google $$anonymous$$obile Ads plugin library manifest will get merged with your
application's manifest, adding the necessary activity and permissions
required for displaying ads.
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.google.unity"
android:versionName="1.0"
android:versionCode="1">
<uses-sdk android:$$anonymous$$SdkVersion="9"
android:targetSdkVersion="19" />
<!-- Google $$anonymous$$obile Ads Permissions -->
<uses-permission android:name="android.permission.INTERNET"/>
<uses-permission android:name="android.permission.ACCESS_NETWOR$$anonymous$$_STATE"/>
<!-- Uncomment to add billing for in-app purchase ads -->
<!--<uses-permission android:name="com.android.vending.BILLING"/> -->
<application>
<!-- Denote the referenced Google Play services version -->
<meta-data android:name="com.google.android.gms.version"
android:value="@integer/google_play_services_version" />
<!-- Google $$anonymous$$obile Ads Activity -->
<activity android:name="com.google.android.gms.ads.AdActivity"
android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|ui$$anonymous$$ode|screenSize|smallestScreenSize"
android:theme="@android:style/Theme.Translucent" />
<!-- InAppPurchase Activity -->
<activity android:name="com.google.android.gms.ads.purchase.InAppPurchaseActivity"
android:theme="@style/Theme.IAPTheme"/>
</application>
</manifest>
Your answer
Follow this Question
Related Questions
Missing libraries in Google Play Services Revision 30 5 Answers
Google Play Game Services activation success/error checking 0 Answers
Unable to convert classes into dex format 12 Answers
Create background service from Android Plugin 0 Answers
"using UnityEngine.SocialPlatforms;" stay gray while trying to use it. 0 Answers