Android Question Error in AndroidManifest.xml

Penfound

Active Member
Licensed User
Longtime User
Hi I'm getting an error message...

B4X:
java.lang.IllegalStateException: The meta-data tag in your app's AndroidManifest.xml does not have the right value.  Expected 4132500 but found 4242000.  You must have the following declaration within the <application> element:  <meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version" />
...and as far as I can tell I have already entered it into the manifest file as below...

B4X:
AddApplicationText(
<meta-data android:name="com.google.android.gms.version" android:value="@integer/google_play_services_version"/>

<activity android:name="com.google.android.gms.ads.AdActivity" android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"/>
)

I did try adding just the <Application> tag but it did not want to accept that.
I know it is me but what have I got wrong please?

Cheers all
Penfound
 

CyclopDroid

Well-Known Member
Licensed User
Longtime User
Ok, but I need to test app on other devices and use emulator for this.
Anyway, now everything works perfectly...thanks Erel for support. ;)
PS: in AVD_for_7_WSVGA_Tablet, a new error "Unfortunately launched has stopped" it's resolved modify the value VM Heap from 16 to 32 ... and it work.
 
Upvote 0

fishwolf

Well-Known Member
Licensed User
Longtime User
You don't need to downgrade.

This error means that you haven't updated google-play-services.jar (in the additional libraries folder) to the latest version.

i have update sdk android and now i have the same error

i have copy the jar but now the admod return this error

what is the problem ?

B4X:
------------------------------------------
AccountName=castiel.software@gmail.com
AccountType=com.google
(Profile, 33) FullScreen or IncludeTitle properties in layout file do not match the activity attributes settings. (warning #1004)
functions_class_globals (B4A line: 35)
Fn.Initialize(Activity, Me)
java.lang.ExceptionInInitializerError
   at it.software.castiel.infoagility.functions._class_globals(functions.java:203)
   at java.lang.reflect.Method.invokeNative(Native Method)
   at java.lang.reflect.Method.invoke(Method.java:511)
   at anywheresoftware.b4a.BA.raiseEvent2(BA.java:174)
   at it.software.castiel.infoagility.functions.innerInitialize(functions.java:23)
   at it.software.castiel.infoagility.functions._initialize(functions.java:369)
   at it.software.castiel.infoagility.profile._activity_create(profile.java:443)
   at java.lang.reflect.Method.invokeNative(Native Method)
   at java.lang.reflect.Method.invoke(Method.java:511)
   at anywheresoftware.b4a.BA.raiseEvent2(BA.java:174)
   at it.software.castiel.infoagility.profile.afterFirstLayout(profile.java:98)
   at it.software.castiel.infoagility.profile.access$100(profile.java:16)
   at it.software.castiel.infoagility.profile$WaitForLayout.run(profile.java:76)
   at android.os.Handler.handleCallback(Handler.java:615)
   at android.os.Handler.dispatchMessage(Handler.java:92)
   at android.os.Looper.loop(Looper.java:137)
   at android.app.ActivityThread.main(ActivityThread.java:4745)
   at java.lang.reflect.Method.invokeNative(Native Method)
   at java.lang.reflect.Method.invoke(Method.java:511)
   at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:786)
   at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:553)
   at dalvik.system.NativeStart.main(Native Method)
Caused by: java.lang.NoClassDefFoundError: com.google.android.gms.ads.AdSize
   at anywheresoftware.b4a.admobwrapper.AdViewWrapper.<clinit>(AdViewWrapper.java:37)
   ... 22 more
 
Upvote 0
Top