Hi
I’ve added AdMob Qt5 plugin to my app and want to run it on android
To install AdMob plugin I’ve used steps, described here: http://plugins.felgo.com/doc/plugin-installation/
However, after changing activity and package to VPlay’s ones, my application stopped to work:
Starting remote process.D/dalvikvm(18754): Late-enabling CheckJNI
D/AndroidRuntime(18754): Shutting down VM
W/dalvikvm(18754): threadid=1: thread exiting with uncaught exception (group=0x41eacd88)
E/AndroidRuntime(18754): FATAL EXCEPTION: main
E/AndroidRuntime(18754): Process: org.vladest.Popcorn, PID: 18754
E/AndroidRuntime(18754): java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{org.vladest.Popcorn/net.vplay.helper.VPlayActivity}: java.lang.ClassNotFoundException: Didn't find class "net.vplay.helper.VPlayActivity" on path: DexPathList[[zip file "/data/app/org.vladest.Popcorn-1.apk"],nativeLibraryDirectories=[/data/app-lib/org.vladest.Popcorn-1, /vendor/lib, /system/lib]]
E/AndroidRuntime(18754): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2174)
E/AndroidRuntime(18754): at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2298)
E/AndroidRuntime(18754): at android.app.ActivityThread.access$800(ActivityThread.java:144)
E/AndroidRuntime(18754): at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1246)
E/AndroidRuntime(18754): at android.os.Handler.dispatchMessage(Handler.java:102)
E/AndroidRuntime(18754): at android.os.Looper.loop(Looper.java:212)
E/AndroidRuntime(18754): at android.app.ActivityThread.main(ActivityThread.java:5151)
E/AndroidRuntime(18754): at java.lang.reflect.Method.invokeNative(Native Method)
E/AndroidRuntime(18754): at java.lang.reflect.Method.invoke(Method.java:515)
E/AndroidRuntime(18754): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:878)
E/AndroidRuntime(18754): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:694)
E/AndroidRuntime(18754): at dalvik.system.NativeStart.main(Native Method)
E/AndroidRuntime(18754): Caused by: java.lang.ClassNotFoundException: Didn't find class "net.vplay.helper.VPlayActivity" on path: DexPathList[[zip file "/data/app/org.vladest.Popcorn-1.apk"],nativeLibraryDirectories=[/data/app-lib/org.vladest.Popcorn-1, /vendor/lib, /system/lib]]
E/AndroidRuntime(18754): at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
E/AndroidRuntime(18754): at java.lang.ClassLoader.loadClass(ClassLoader.java:497)
E/AndroidRuntime(18754): at java.lang.ClassLoader.loadClass(ClassLoader.java:457)
E/AndroidRuntime(18754): at android.app.Instrumentation.newActivity(Instrumentation.java:1061)
E/AndroidRuntime(18754): at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2165)
E/AndroidRuntime(18754): ... 11 more
I/Process (18754): Sending signal. PID: 18754 SIG: 9
my AndroidManifest:
<?xml version="1.0"?>
<manifest package="org.vladest.Popcorn" xmlns:android="http://schemas.android.com/apk/res/android" android:versionName="1.0" android:versionCode="1" android:installLocation="auto">
<application package="net.vplay.helper.VPlayApplication" android:hardwareAccelerated="true" android:name="org.qtproject.qt5.android.bindings.QtApplication" android:label="@string/app_name" android:theme="@android:style/Theme.NoTitleBar.Fullscreen">
<activity android:configChanges="orientation|uiMode|screenLayout|screenSize|smallestScreenSize|locale|fontScale|keyboard|keyboardHidden|navigation" android:name="net.vplay.helper.VPlayActivity" android:label="@string/app_name" android:screenOrientation="unspecified" android:launchMode="singleTop">
<intent-filter>
<action android:name="android.intent.action.MAIN"/>
<category android:name="android.intent.category.LAUNCHER"/>
</intent-filter>
<meta-data android:name="android.app.lib_name" android:value="-- %%INSERT_APP_LIB_NAME%% --"/>
<meta-data android:name="android.app.qt_sources_resource_id" android:resource="@array/qt_sources"/>
<meta-data android:name="android.app.repository" android:value="default"/>
<meta-data android:name="android.app.qt_libs_resource_id" android:resource="@array/qt_libs"/>
<meta-data android:name="android.app.bundled_libs_resource_id" android:resource="@array/bundled_libs"/>
<!-- Deploy Qt libs as part of package -->
<meta-data android:name="android.app.bundle_local_qt_libs" android:value="-- %%BUNDLE_LOCAL_QT_LIBS%% --"/>
<meta-data android:name="android.app.bundled_in_lib_resource_id" android:resource="@array/bundled_in_lib"/>
<meta-data android:name="android.app.bundled_in_assets_resource_id" android:resource="@array/bundled_in_assets"/>
<!-- Run with local libs -->
<meta-data android:name="android.app.use_local_qt_libs" android:value="-- %%USE_LOCAL_QT_LIBS%% --"/>
<meta-data android:name="android.app.libs_prefix" android:value="/data/local/tmp/qt/"/>
<meta-data android:name="android.app.load_local_libs" android:value="-- %%INSERT_LOCAL_LIBS%% --"/>
<meta-data android:name="android.app.load_local_jars" android:value="-- %%INSERT_LOCAL_JARS%% --"/>
<meta-data android:name="android.app.static_init_classes" android:value="-- %%INSERT_INIT_CLASSES%% --"/>
<!-- Messages maps -->
<meta-data android:value="@string/ministro_not_found_msg" android:name="android.app.ministro_not_found_msg"/>
<meta-data android:value="@string/ministro_needed_msg" android:name="android.app.ministro_needed_msg"/>
<meta-data android:value="@string/fatal_error_msg" android:name="android.app.fatal_error_msg"/>
<!-- Messages maps -->
<!-- Splash screen -->
<!--
<meta-data android:name="android.app.splash_screen_drawable" android:resource="@drawable/logo"/>
-->
<!-- Splash screen -->
</activity>
</application>
<uses-sdk android:minSdkVersion="19" android:targetSdkVersion="19"/>
<supports-screens android:largeScreens="true" android:normalScreens="true" android:anyDensity="true" android:smallScreens="true"/>
<!-- The following comment will be replaced upon deployment with default permissions based on the dependencies of the application.
Remove the comment if you do not require these default permissions. -->
<!-- %%INSERT_PERMISSIONS -->
<!-- The following comment will be replaced upon deployment with default features based on the dependencies of the application.
Remove the comment if you do not require these default features. -->
<!-- %%INSERT_FEATURES -->
</manifest>