I begin to get angry, there's no way I can put admob in my app.
I have a 2.3.3 app with min-sdk="10" I need it for zxing.
now I need to put admob... I go in my account to download it (version 6.0.1), and i found that android 3.2 is needed!
I've tried various implementation, such as put admob4, varios code, but i had no success...
how can i install admob and let 2.3.3? how can make this terrible thing work?
logcat:
07-10 13:55:20.007: E/AndroidRuntime(1348): java.lang.RuntimeException: Unable to start activity ComponentInfo{it.mi.action.codmmunicator_2ddecoder/it.mi.action.codmmunicator_2ddecoder.Tabs}: android.view.InflateException: Binary XML file line #8: Error inflating class com.google.ads.AdView
Here you can see how you can add admob into your app. You simply have to work with the 3.2 or 4 android sdk but in your manifest min-sdk tag you put 10 ... For more details please take a look at that tutorial.
Related
I'm getting an error while displaying maps in a fragment, I've been searching for the solution and Tried several codes but nothing seems to work.
MainActivity.xml
StackTrace: {Android.Views.InflateException: Binary XML file line #1: Binary XML file line #2: Error inflating class fragment --->
Android.Views.InflateException: Binary XML file line #2: Error inflating class fragment --->
Java.Lang.RuntimeException: API key not found.
Check that
is in the element of AndroidManifest.xml
it says API Key not found, but i did declared it in manifest and validated it using http://yougapi.com/tools/google-api-key-checker.php
AndroidManifest.xml
activity_main.xml
PS: Im using android 9.0 physical device for debugging
Please make sure if you have install Xamarin.GooglePlayServices.Maps package from NuGet.
And you used Android 9.0 physical device, please make sure your device if have Google Play services
I test my demo in the Android 10.0 emulator, it worked as normal.
Here is my demo. You can test it.
https://github.com/851265601/XAndroidMap
I use https://github.com/mattprecious/swirl/blob/master/README.md in my app.
I don't want appear SwirlView on lowwer sdk marshmallow version. because SwirlView working on version sdk marshmallow or higher version.
so I add "tools:targetApi='M'" to SwirlView xml node. look at the code below.
<com.mattprecious.swirl.SwirlView
android:id="#+id/fingerprint_SwirlView"
android:layout_width="100dp"
android:layout_height="100dp"
tools:targetApi="M"/>
but when I run app on lolipop version. occure error like this.
android.view.InflateException: Binary XML file line #29: Error inflating class com.mattprecious.swirl.SwirlView
what is problem with my code.
sorry for my poor english skill.
You gotta override the xml instead of suppressing the error. Tools don't affect the app, only Android Studio.
I am trying to replace old adMob implementation with the new Google Play Services AdMob version.
Unfortunately on some devices (with Android 4.0, 4.1) get following error:
*FATAL EXCEPTION: main
E/AndroidRuntime(5280): java.lang.RuntimeException: Unable to start activity ComponentInfo: android.view.InflateException: Binary XML file line #14: **Error inflating class com.google.ads.AdView***
As you see, the problem is with com.google.ads.AdView but I am replaced this with com.google.android.gms.ads then no more using this old ads library mentioned in this error. I am sure that all code is replaced with the new gms library properties (in Manifest, XML, imports and invoking method).
Due my tests even removed all ads and libraries calls from my app but the problem still exist.
This app (and new ads) working properly on some devices (with Android 2.3.5 and 4.4.3) and in emulators but not working on devices with Android 4.0 or 4.1.
I am using Eclipse.
Thank you for any help.
With Google Play Services, the package name of the Ad classes have changed. Instead of com.google.ads, it's now com.google.android.gms.ads.
So if you change this in your layout, it should work.
I have followed all the steps for adding an AdMob Ad into my app from the link at
http://www.wikihow.com/Add-Advertisements-to-Your-Android-Applications-Using-Admob
But when I run my App it does not display the Ad. My app uses AndEngine and hence the target =android-17 as opposed to android-13 specified in the link which causes compilation errors. I added the method onCreateBundle() and wanted to test AdMob. But I get this error in logCat
in my activity_main.xml for with the message
"Error inflating class com.google.ads.Adview. I can see that the jar file has been added to the build path.
Can you please let me know what I am doing wrong. I added the code more than 12 hours back and yet there is no display.
The problems was fixed by by clicking Project->Propoerties->Build Path-> Order & Export and then building. See
Error inflating class com.google.ads.AdView
Alright, I have been messing with this for a few hours now, and I can't figure out why I'm having issues.
I have been following the example from
http://xebee.xebia.in/2010/08/31/exploring-android-charting-and-graphs-solutions/
AND
I have already tried to create a fix using this link:
Android achartengine simple pie chart
AND
I have tried using the demo that achartengine provides Here.
But that project crashed immediately after selecting a chart type on my android device.
I am new to android, and have followed those two resources almost exactly, and I'm getting this:
Conversion to Dalvik format failed with error 1
None of my src files are showing up with errors, and I have added the new activity in AndroidManifest.xml and achartengine-1.0.0.jar into my libs folder
I am using Android 4.0.3 API Level 15
I can't believe I am having this much trouble with such a seemingly simple task, but I appreciate your help.
EDIT:
this is a snippit from my log:
07-04 17:03:58.650: E/AndroidRuntime(21611): FATAL EXCEPTION: main
07-04 17:03:58.650: E/AndroidRuntime(21611): java.lang.RuntimeException: Unable to start activity ComponentInfo{axiodesigns.com.caffeinezone2/axiodesigns.com.caffeinezone2.CzMain}: android.content.ActivityNotFoundException: Unable to find explicit activity class {axiodesigns.com.caffeinezone2/org.achartengine.GraphicalActivity}; have you declared this activity in your AndroidManifest.xml?
I have no activity called GraphicalActivity, and even after i added:
<activity android:name="GraphicalActivity"></activity>
I received the exact same error
quite a headscratcher
Found the fix, my build path was not recognizing that I had the .jar in my libs folder.
This fixed it:
The application AChartengine has stopped unexpectedly. Please try again
Thanks for the help all