I'm trying to put Admob for android app in studio and then publish it on google play.
I have read that soon, google requires a very specific way of displaying banner.
I wonder if this form is correct and incidentally try to fix the bug that gives me.
The mobile works perfect, but not that get the error on android studio.
I put a picture to make it easier to find the error.
Hope you can help me, Thanks.
enter link description here
The error you are getting is from an old version of Admob (6.4.1), and is only an error when trying to render the AdView within your editor, it is not a runtime error.
Try using the new Admob SDK (the one from Google Play Services). It is much more likely to have this (editor only) bug fixed.
Related
I just made a game with LibGdx and was trying to run it on the android device, however, I got a error like the following below. I read some article about a similar issue on stackoverflow, however, it did not help me.
If there are some developers out here who knows about the issue, It would be a great if you can give me a helping hand. I would love to hear from you !
19:05:29 Throwable: Unexpected error: package manager reports that package com.mygame.android has not been installed: Expected string 'Package [com.mygame.android]' not found in output:
19:05:36 Gradle build finished in 1 sec
You didn't specify which article you saw, but here's one which has an accepted answer from the original poster. So give these things a try if you haven't already.
Unable to deploy basic android app
Also, have you tried testing the default libgdx project (that displays the badlogic logo image) on your android device? Does this run ok or does this also not work?
I have an extremely strange problem to which finding solution seems to be very tricky. Here's the story:
The application I'm working on uses both Facebook SDK and Google Maps v2. Team mate was working on Google Maps and I was working on Facebook part. When we combine his and mine code it appears that just having FacebookSDK as an imported project in the workspace (not even referenced in Properties|Android|Library section of our app) , straight away makes the app not see the Google Maps library. The work around is to add Google Maps into Java build path, however the application still crashes when we try to access the activity based on Google Maps. Not having Facebook SDK in the workspace makes the Google Maps work. When the app is ran with Google Maps added to the Java build Path, when trying to access the Google Maps activity LogCat shows NoClassDefFoundError exception.
Hope I explained the problem well. If not then let me know what more is required to get closer to fixing this strange problem. Thanks :)
SOLUTION: It seems that adding Java Build Path reference to android_sdk\extras\google\google_play_services\libproject\google-play-services_lib\libs\google_play_services.jar file fixed the issue. Crysis averted. ;)
I'm developing an android app with Youtube android api..It was worked sucessfully upto last week.But now it shows an error,"
an error occurred while initializing the youtube player(network error)
Then i have tried the sample application with Youtube android api by developer forum.It also shows the same error..Please give me a solution
I can not reproduce the error. I am using the sample application with Youtube Android Api on my Nexus 7, and the last version of the YouTube app.
Maybe it is related to the problem mentioned here:
YouTube intent, error 400
You can try the workaround mentioned "log out of the youtube app and then log in again."
Try this solution on a Google product forums which helped to solve my problem - which was similar to the problem you're experiencing :)
SOLUTION: Give ONLY the YouTube ID and not the entire YouTube URL to the loadVideo() function.
Try this for 400 error..
Check your id .I think there is space in id or youtube url either start or end .I have similar problem and solved by this .You should also try .It may be help for if you dave setup all properly .
I encountered the same issue.
I recognized that the youtube app was having an update available and could not be used therefore. After installing the update everything worked fine again.
It looks like the app is somehow blocking the API when an update needs to be installed.
I am not sure what I am doing wrong. The following code I use in an on click listener for a button and it works great in API8, now that I am checking compatibility its crashing everywhere else. What am I doing wrong?
startActivity(getPackageManager().getLaunchIntentForPackage("com.google.android.apps.maps"));
I figured out the issue. The emulator used with the AVD manager must be the google API version not the android version. The latter does not have the maps app installed.
I'm trying to write some apps using wikitude, and I'm having some problems running even the example.
I've put the sample ( BasicOpenARDemo ) that comes with the SDK inside eclipse and tried to run it, where I encountered the next error: "wikitude was not found on the system. Please press the ok-button to access the Android market and download wikitude."
First question- I don't understand- Why am I approached to download the utility when I have a standalone sample inside my eclipse? Doesn't the core files behind Wikitude come with the SDK or the sample itself?
The next question will be - after some googling, I've found that in order to install this "Android market" I need to follow the manual that comes in the 9th message in the next thread (the message that was written by ronni.rasmussen) -
http://forum.xda-developers.com/archive/index.php/t-529170.html
Well, I've followed it, and now when I try to press the OK button that comes after the "wikitude was not found on the system..." message, I get redirected to the Android market, where I find Wikitude, but when I try to download it- I get a "Download was unsuccessful. Please try again" error message. How do I fix that?
One more thing that I don't understand- How come it's written in this offline Android market that the available wikitude version is for android 1.5 and no longer maintained?
As you can see- I'm quite baffled here. Hope someone could clear this up for me.
I was with the exact same problem. The problem was that installing Wikitude from the market (following the link you provided) does not guarantee to have the system requirements supported in the virtual device, therefore it gives an error when you run the BasicOpenARDemo, if it let you install it at all.
The solution was creating an AVD with an GoogleAPI (it includes maps support, I used the level 10 API for Android 2.3.3, it didn't work for the level 8 API), adding the camera, accelerometer, compass, GPS, etc., support to the virtual device (I did this via Eclipse). Then I downloaded the .apk for Wikitude and installed it via command line (.adb).