Manifest error....

DevBaby

Active Member
Licensed User
Longtime User
Hi,

I am integrating an SDK for advertising. The doc tells me to add lines to my Manifest. I get the following error message...

"No resource found that matches the given name (at 'label' with value '@string/app_name')


My Manifest editor lines are below. I only get the error when including the lines in bold.

'This code will be applied to the manifest file during compilation.
'You do not need to modify it in most cases.
'See this link for for more information: Manifest Editor
AddManifestText(
<uses-sdk android:minSdkVersion="4" />

<receiver
android:exported="true"
android:name="com.sponsorpay.sdk.android.advertiser.InstallReferrerReceiver" >
<intent-filter >
<action android:name="com.android.vending.INSTALL_REFERRER" />
</intent-filter>
</receiver>

<application android:icon="@drawable/icon" android:label="@string/app_name">

<activity android:name="com.sponsorpay.sdk.android.publisher.OfferWallActivity" android:configChanges="orientation" />


<meta-data android:value="0000" android:name="SPONSORPAY_APP_ID"/>
</application>


<supports-screens android:largeScreens="true"
android:normalScreens="true"
android:smallScreens="true"
android:anyDensity="true"/>)
'InAppBilling declarations - Start
AddReceiverText(InAppBillingService, <intent-filter>
<action android:name="com.android.vending.billing.IN_APP_NOTIFY" />
<action android:name="com.android.vending.billing.RESPONSE_CODE" />
<action android:name="com.android.vending.billing.PURCHASE_STATE_CHANGED" />
</intent-filter>)
'InAppBilling declarations - End
SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:label, "$LABEL$")
'End of default text.
 

DevBaby

Active Member
Licensed User
Longtime User
Hi Erel,

I think I see it....should I have used the AddApplicationText() command?

I won't be able to test this until later, let me know if my assumption is correct. Thanks so much!
 
Upvote 0

DevBaby

Active Member
Licensed User
Longtime User
Hi Erel,

I also noticed that I am adding (or at least I think I am adding) a "receiver" component to the manifest file....

<receiver
android:exported="true"
android:name="com.sponsorpay.sdk.android.advertise r.InstallReferrerReceiver" >
<intent-filter >
<action android:name="com.android.vending.INSTALL_REFERRER " />
</intent-filter>
</receiver>

I am not using the AddReceiverText() commnad and I have no service module to attach to this receiver component. Can I use AddReceiverText() without a service module name for the first parameter?
 
Upvote 0
Top