Hello,
I just go a new computer an trying to set B4A to work. I've installed everything, but I encounter this error when running my application on the emulator:
My application uses Admob, Messhare, and Analytics. What could I have done wrong? I'm pretty sure I have followed the setup instructions correctly, but maybe I missed something.
Regards.
Jmon
I just go a new computer an trying to set B4A to work. I've installed everything, but I encounter this error when running my application on the emulator:
LogCat connected to: emulator-5554
Copying updated assets files (26)
** Activity (main) Create, isFirst = true **
Error occurred on line: 0 (misc)
java.lang.IllegalStateException: A required meta-data tag in your app's AndroidManifest.xml does not exist. 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" />
at com.google.android.gms.common.GooglePlayServicesUtil.t(Unknown Source)
at com.google.android.gms.common.GooglePlayServicesUtil.isGooglePlayServicesAvailable(Unknown Source)
at com.google.android.gms.internal.ag.a(Unknown Source)
at com.google.android.gms.internal.at.aG(Unknown Source)
at com.google.android.gms.internal.at.a(Unknown Source)
at com.google.android.gms.ads.AdView.loadAd(Unknown Source)
at anywheresoftware.b4a.admobwrapper.AdViewWrapper.LoadAd(AdViewWrapper.java:118)
at com.jmon.mybabyname.main._activity_create(main.java:825)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:507)
~e: at anywheresoftware.b4a.shell.Shell.runMethod(Shell.java:636)
at anywheresoftware.b4a.shell.Shell.raiseEventImpl(Shell.java:305)
at anywheresoftware.b4a.shell.Shell.raiseEvent(Shell.java:238)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:507)
at anywheresoftware.b4a.ShellBA.raiseEvent2(ShellBA.java:121)
at com.jmon.mybabyname.main.afterFirstLayout(main.java:98)
at com.jmon.mybabyname.main.access$100(main.java:16)
at com.jmon.mybabyname.main$WaitForLayout.run(main.java:76)
at android.os.Handler.handleCallback(Handler.java:587)
at android.os.Handler.dispatchMessage(Handler.java:92)
at android.os.Looper.loop(Looper.java:123)
at android.app.ActivityThread.main(ActivityThread.java:3683)
at java.lang.reflect.Method.invokeNative(Native Method)
at java.lang.reflect.Method.invoke(Method.java:507)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:839)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:597)
at dalvik.system.NativeStart.main(Native Method)
My application uses Admob, Messhare, and Analytics. What could I have done wrong? I'm pretty sure I have followed the setup instructions correctly, but maybe I missed something.
Regards.
Jmon