• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

AdMob difficulties

co500

Newbie
Hello! I hope this is in the right place as I need help asap :)

My app is now essentially complete, however I am having difficulty with adding Ads to my app.

Code:
05-18 23:53:57.209: E/Ads(6595): You must have AdActivity declared in AndroidManifest.xml with configChanges.

My manifest (shortened)
Code:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
    package="com.co500.craftbook"
    android:versionCode="1"
    android:versionName="1.0" >
    <uses-sdk android:minSdkVersion="8" />
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
    <uses-permission android:name="android.permission.INTERNET"/>

    <application
        android:icon="@drawable/ic_launcher"
        android:label="@string/app_name" >
        <activity 
        android:name="com.google.ads.AdAcivity"
        android:configChanges="orientation|keyboard|keyboardHidden|screenLayout|uiMode|screenSize|smallestScreenSize"
        ></activity>

People have said I should change the Project target to 13 or above which I have done however this problem keeps occurring!

You do not know how happy I would be if someone knew what I was doing wrong, thanks :)
 
In your AndroidManifest.xml, try:

Code:
<uses-sdk android:minSdkVersion="8" android:targetSdkVersion="13"/>

And make sure your project.properties file has
Code:
target=android-13

Do you still get errors? If so, what errors are you getting?

~ Dan ~
 
Back
Top Bottom