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
Related
I haven't worked on my app for 2 days and all of a sudden, when running the app, I get this error:
debug console
I haven't touched the code and it was working fine 2 days ago.
The links in the error...
otp_field file
otp_field file
...point to the otp_field.dart file(which I never opened), with the error being The getter 'onChanged00' isn't defined for the class 'OTPTextField'.
I'm not sure how this happened and can't seem to solve this. I updated the otp_field entry in the pubspec.yaml file, but this did not work either.
pubspec.yaml file
(This also happens when I run using the android emulator)
What am I missing here? Would be great if you could point me in the right direction. Thanks in advance.
I set up admob using npm i --save react-native-admob#next and after that implemented of course in my XML file for android the right app-ID which was given to me by admob. I did it just like that:
<meta-data
android:name="com.google.android.gms.ads.APPLICATION_ID"
android:value="ca-app-pub-****************~*********"/>
Also I implemented into the app gradle file following line:
implementation 'com.google.android.gms:play-services-ads:20.2.0'
The last step I did was going into the nodemodules/react-native-admob/build.gradle and changing one line into this:
implementation 'com.google.android.gms:play-services-ads:19.8.0', before that the build was crashing.
My application now builds and doesnt give me ANY error message, however it closes directly after popping up and Im unable to do anything.
No error logs and nothing else beside that. Tried out several solutions which worked for people here, unluckily it didnt work for me.
same issue i faced with this plugin react-native-admob#next.
try this one https://github.com/react-native-admob/admob
I developed applications which use native code. All of a sudden those are not working, giving error "Unsatisfied link error: Couldn't load native library from loader dalvik.System.pathClassLoader, findLibrary returned null. I restarted adt twice. Still getting the same error. Applications which are not using native code, are working fine.
The error implies that the program is not able to find the shared libraries that you would have created.
Which devices did you try it on ?
You can check once if they are available in libs directory of your app . [/data/data/app_id/lib ]. Also check if armv7 support is required and if the directory is there in the libs , is .so present there.
Now it's working. I deleted all my virtual devices and then created a new one. However it's showing "skipped 264 frames. application may be doing too much work on main thread" many times and whenever we press a button, displaying this message in log "error loading /system/media/audio/ui/Effect_Tick.ogg"
thanks.
i was trying to integrate google +1 option in my app.
i imported google play services library in ma app and i did all previous steps like enabling g+ api xml .When i try to add google plus button in xml file,i am getting following error
The following classes could not be instantiated:
- com.google.android.gms.plus.PlusOneButton (Open Class, Show Error Log)
See the Error Log (Window > Show View) for more details.
I had same problem with TitlePageIndicator.
My reason - wrong class definition in manifest. (Copy/past error during update project).
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.