Forums

OverviewFelgo 2 Support (Qt 5) › some trouble – Didn\'t find class \"net.vplay.plugins.onesignal.OneSignalItem\"

Tagged: 

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #17014

    Marek

    Hi

    I have fresh installation of Felgo and I created plugin app from QtCreator according to https://felgo.com/doc/plugin-onesignal

    I have also created OneSignal account, firebase account I got my App ID from OneSignal and I have created license key for my app with OneSignal plugin selected, license must be working because I don’t have a watermark anymore. However when the app is staring I can see in debug:

    W/System.err(32740): java.lang.ClassNotFoundException: Didn't find class "net.vplay.plugins.onesignal.OneSignalItem" on path:
    W/System.err(32740): 	at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:65)
    W/System.err(32740): 	at java.lang.ClassLoader.loadClass(ClassLoader.java:501)
    W/System.err(32740): 	at java.lang.ClassLoader.loadClass(ClassLoader.java:461)
    W/System.err(32740): 	at dalvik.system.NativeStart.run(Native Method)
    W/Sarat   (32740): (null):0 ((null)): Warning: Plugin "VPlay.plugins.onesignal" disabled: Native frameworks not found

    I have checked build.gradle it contains what is required.

    On OneSignal Dashboard when I click “Check Subscribed Users” it says “Haven’t detected…”

    So what might be wrong, I’m running Linux Stretch 64bit phone is Samsung S3 Android 4.2.2 AndroidManifest.xml minimal API 16

     

    Best Regards

    Marek

    #17016

    Günther
    Felgo Team

    Hi Marek!

    The ‘Native Frameworks Not Found’ warning suggests that OneSignal framework is not correctly linked. The plugin thus won’t work, so nothing will show up in the OneSignal dashboard.

    Please first make sure that your android/build.gradle configuration contains the correct entry:

    // ...
    
    apply plugin: 'com.android.application'
    
    dependencies {
        compile fileTree(dir: 'libs', include: ['*.jar'])
        compile 'net.vplay.plugins:plugin-onesignal:2.+' // one signal plugin
    }
    
    android {
      // ...
    }

    Also, please make sure that you are building the project with the Gradle Build System.

     

    Before trying a new build, fully cleaning the project can help:

    • Close Qt Creator
    • Remove the shadow build directory (e.g. build-<app>-Android_for_armeabi_v7a-…) from your file system.
    • Remove the *.pro.user file in your project folder from the file system
    • Remove the previous version of the app from your test device if installed from a previous run
    • Open the project in Qt Creator and select your Kits
    • Right click the project in Qt Creator and choose “Clean” followed by “Run qmake”
    • Build and run the project

    Do you still get the same issue with the exception and warning for a fresh and clean build?

    Best,
    Günther

    #17017

    Marek

    Hi

    I haven’t got Android Extras in SDK installed and also “Use gradle” check button not checked. SDK will take some time to download and install so I will let you know later whether it works for me.

    Thanks

    Marek

    #17313

    Jean-Marc

    Hi,
    Same problem for me ! Can’t build anymore apk since a few days…
    I did all Günther said but nothing has changed, the error is still there:
    A problem occurred configuring root project ‘android-build’.

    > Could not resolve all dependencies for configuration ‘:_debugCompile’.

    > Could not find any version that matches com.google.android.gms:play-services-gcm:[10.2.1,11.3.0).

    Searched in the following locations:

    https://jcenter.bintray.com/com/google/android/gms/play-services-gcm/maven-metadata.xml

    https://jcenter.bintray.com/com/google/android/gms/play-services-gcm/

    https://sdk.felgo.com/maven/com/google/android/gms/play-services-gcm/maven-metadata.xml

    https://sdk.felgo.com/maven/com/google/android/gms/play-services-gcm/

    file:/C:/Coding/Android/tools_r25.2.3-windows/extras/android/m2repository/com/google/android/gms/play-services-gcm/maven-metadata.xml

    file:/C:/Coding/Android/tools_r25.2.3-windows/extras/android/m2repository/com/google/android/gms/play-services-gcm/

    file:/C:/Coding/Android/tools_r25.2.3-windows/extras/google/m2repository/com/google/android/gms/play-services-gcm/maven-metadata.xml

    Required by:

    :android-build:unspecified > net.vplay.plugins:plugin-onesignal:2.13.2-1 > com.onesignal:OneSignal:3.6.4

    > Could not find any version that matches com.google.android.gms:play-services-location:[10.2.1,11.3.0).

    Searched in the following locations:

    https://jcenter.bintray.com/com/google/android/gms/play-services-location/maven-metadata.xml

    https://jcenter.bintray.com/com/google/android/gms/play-services-location/

    https://sdk.felgo.com/maven/com/google/android/gms/play-services-location/maven-metadata.xml

    https://sdk.felgo.com/maven/com/google/android/gms/play-services-location/

    file:/C:/Coding/Android/tools_r25.2.3-windows/extras/android/m2repository/com/google/android/gms/play-services-location/maven-metadata.xml

    file:/C:/Coding/Android/tools_r25.2.3-windows/extras/android/m2repository/com/google/android/gms/play-services-location/

    file:/C:/Coding/Android/tools_r25.2.3-windows/extras/google/m2repository/com/google/android/gms/play-services-location/maven-metadata.xml

    Required by:

    :android-build:unspecified > net.vplay.plugins:plugin-onesignal:2.13.2-1 > com.onesignal:OneSignal:3.6.4

    > Could not find any version that matches com.android.support:support-v4:[26.0.0,26.2.0).

    Searched in the following locations:

    https://jcenter.bintray.com/com/android/support/support-v4/maven-metadata.xml

    https://jcenter.bintray.com/com/android/support/support-v4/

    https://sdk.felgo.com/maven/com/android/support/support-v4/maven-metadata.xml

    https://sdk.felgo.com/maven/com/android/support/support-v4/

    file:/C:/Coding/Android/tools_r25.2.3-windows/extras/android/m2repository/com/android/support/support-v4/maven-metadata.xml

    file:/C:/Coding/Android/tools_r25.2.3-windows/extras/google/m2repository/com/android/support/support-v4/maven-metadata.xml

    file:/C:/Coding/Android/tools_r25.2.3-windows/extras/google/m2repository/com/android/support/support-v4/

    Required by:

    :android-build:unspecified > net.vplay.plugins:plugin-onesignal:2.13.2-1 > com.onesignal:OneSignal:3.6.4

    > Could not find any version that matches com.android.support:customtabs:[26.0.0,26.2.0).

    Searched in the following locations:

    https://jcenter.bintray.com/com/android/support/customtabs/maven-metadata.xml

    https://jcenter.bintray.com/com/android/support/customtabs/

    https://sdk.felgo.com/maven/com/android/support/customtabs/maven-metadata.xml

    https://sdk.felgo.com/maven/com/android/support/customtabs/

    file:/C:/Coding/Android/tools_r25.2.3-windows/extras/android/m2repository/com/android/support/customtabs/maven-metadata.xml

    file:/C:/Coding/Android/tools_r25.2.3-windows/extras/google/m2repository/com/android/support/customtabs/maven-metadata.xml

    file:/C:/Coding/Android/tools_r25.2.3-windows/extras/google/m2repository/com/android/support/customtabs/

    Required by:

    :android-build:unspecified > net.vplay.plugins:plugin-onesignal:2.13.2-1 > com.onesignal:OneSignal:3.6.4

    #17324

    Günther
    Felgo Team

    Hi Jean-Marc,

    sorry for the troubles!

    We updated the OneSignal Plugin with the latest Felgo version, which affects some dependencies and build.gradle settings. Please open the android/build.gradle configuration of your project and add https://maven.google.com as a repository:

    allprojects {
        repositories {
            jcenter()
            maven { url 'https://maven.google.com' }
            maven { url 'https://sdk.felgo.com/maven/' }
        }
    }
    

     

    Before trying a new build, please fully clean the project:

    • Remove the shadow build directory (e.g. build-<app>-Android_for_armeabi_v7a-…) from your file system.
    • Right click the project in Qt Creator and choose “Clean” followed by “Run qmake”
    • Build and run the project

    Let me know if this solves the issue for you!

    Best,
    Günther

    #17331

    Jean-Marc

    Hi !

    Great, it worked for me!
    I can build an apk  again !

    Thank you!

    Jean-Marc

Viewing 6 posts - 1 through 6 (of 6 total)

RSS feed for this thread

You must be logged in to reply to this topic.

Voted #1 for:

  • Easiest to learn
  • Most time saving
  • Best support

Develop Cross-Platform Apps and Games 50% Faster!

  • Voted the best supported, most time-saving and easiest to learn cross-platform development tool
  • Based on the Qt framework, with native performance and appearance on all platforms including iOS and Android
  • Offers a variety of plugins to monetize, analyze and engage users
FREE!
create apps
create games
cross platform
native performance
3rd party services
game network
multiplayer
level editor
easiest to learn
biggest time saving
best support