Admob Error in Eclipse for android:configChanges
Simple answer: the mentioned config changes are not support in Android 2.1, have a look here:
http://developer.android.com/guide/topics/manifest/activity-element.html#config
e.g. uiMode needs API Level 8.
From the official AdMob Documentation:
Requirements
The Google AdMob Ads SDK for Android requires Android 1.5 or later. Make sure you have the latest copy of the Android SDK and that you're compiling against at least Android v3.2 (set target in default.properties to android-13).
have a look here: https://developers.google.com/admob/android/quick-start
So I think your tools version is not updated to at least Version 13.
AdMob can't display ads because of configChanges
To fix the problem you have to set your project build target to Android 3.2 or higher, see the requirements section in the documentation (Android tab).
Cant add AdMob on eclipse
Your problem is that api 10 is version 2.3.3
, not 3.3
. The screenSize
and smallestScreenSize
configChanges required by AdMob were not introduced into the Android framework until Android 3.2 (api 13). So if your project.properties has something lower than android-13
, your app simply won't compile.
As for adding the AdView, I'm not sure I understand your problem. The example code is open-sourced here. Perhaps you could point to the line that is giving you issues.
AndroidManifest gives 14 errors after adding admob
You added an extra < application> and < manifest> tag.
Paste the admob meta tags inside the above < application> tag.
Delete extra tags.
Like this;
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.Akcakale_Sari_Sayfa">
<!-- io.flutter.app.FlutterApplication is an android.app.Application that
calls FlutterMain.startInitialization(this); in its onCreate method.
In most cases you can leave this as-is, but you if you want to provide
additional functionality it is fine to subclass or reimplement
FlutterApplication and put your custom class here. -->
<application
android:name="io.flutter.app.FlutterApplication"
android:label="Akcakale_Sari_Sayfa"
android:icon="@mipmap/ic_launcher">
<activity
android:name=".MainActivity"
android:launchMode="singleTop"
android:theme="@style/LaunchTheme"
android:configChanges="orientation|keyboardHidden|keyboard|screenSize|smallestScreenSize|locale|layoutDirection|fontScale|screenLayout|density|uiMode"
android:hardwareAccelerated="true"
android:windowSoftInputMode="adjustResize">
<!-- Specifies an Android theme to apply to this Activity as soon as
the Android process has started. This theme is visible to the user
while the Flutter UI initializes. After that, this theme continues
to determine the Window background behind the Flutter UI. -->
<meta-data
android:name="io.flutter.embedding.android.NormalTheme"
android:resource="@style/NormalTheme"
/>
<!-- Displays an Android View that continues showing the launch screen
Drawable until Flutter paints its first frame, then this splash
screen fades out. A splash screen is useful to avoid any visual
gap between the end of Android's launch screen and the painting of
Flutter's first frame. -->
<meta-data
android:name="io.flutter.embedding.android.SplashScreenDrawable"
android:resource="@drawable/launch_background"
/>
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
</activity>
<!-- Don't delete the meta-data below.
This is used by the Flutter tool to generate GeneratedPluginRegistrant.java -->
<meta-data
android:name="flutterEmbedding"
android:value="2" />
<!-- Sample AdMob app ID: ca-app-pub-************************ -->
<meta-data
android:name="com.google.android.gms.ads.APPLICATION_ID"
android:value="ca-app-pub-**************************"/>
</application></manifest>
Admob with Android: unable to parse android:configChanges in manifest
The AdMob SDK v4.3.1 was released late last night. The SDK requires these new configChanges for tablet optimization, but these configChanges are only available in Honeycomb and above.
You will need to download Android SDK Version 3.2 or above, and then set target=13
or above in your project.properties file to compile against the new SDK version. It will still support Android 1.5 devices and above, and that can be controlled by the minSdkVersion in your manifest.
Related Topics
Org.JSON.JSON Exception:End of Input at Character 0
How to Make an Android App to Always Run in Background
How to Start/ Launch Application at Boot Time Android
Programmatically Change the Value of a Color Resource Obtained from API Response
Distance Calculation from My Location to Destination Location in Android
Add New Item Count to Icon on Button - Android
Question Mark () in Xml Attributes for Android
How to Create a Circular (Endless) Recyclerview
Losing Data When Rotate Screen
How to Remove Lines Between Listviews on Android
Marking Sms Messages as Read/Unread or Deleting Messages Not Working in Kitkat
Android Image View Pinch Zooming
Admob Error in Eclipse for Android:Configchanges
How to Set Internet Options for Android Emulator
Java.Lang.Noclassdeffounderror: Javax.Activation.Datahandler in Android
Get Center Visible Item of Recycleview When Scrolling
How Do Detect Android Tablets in General. Useragent
Getting "Socketexception:Connection Reset by Peer" in Android