Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-80266

Qt: Can't create main activity

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Do
    • P1: Critical
    • None
    • 5.14.0 Beta3
    • Extras: Android
    • None
    • compiling pc: Windows 10
      phone 1: Samsung Galaxy S8 with Android 9
      phone 2: Samsung Galaxy J3 with Android 5.1.1
    • Android

    Description

      It looks like Qt 5.14.0 for Android does not like JNIEXPORT

      To be noted: currently the only way I found to run a qt 5.14 project is to compile in Qt Creator, import the compiled gradle project into Android Studio and run...

      If I try the example under Qt\Examples\Qt-5.14.0\androidextras\notification everything works fine... but ...

      On my projects and also with this project referenced from the qt blog, running the app outputs this error:

      E/Qt: Can't create main activity
       android.content.res.Resources$NotFoundException: String array resource ID #0x0
       at android.content.res.Resources.getStringArray(Resources.java:1699)
       at org.qtproject.qt5.android.bindings.QtLoader.startApp(QtLoader.java:423)
       at org.qtproject.qt5.android.bindings.QtActivityLoader.onCreate(QtActivityLoader.java:183)
       at org.qtproject.qt5.android.bindings.QtActivity.onCreateHook(QtActivity.java:266)
       at org.qtproject.qt5.android.bindings.QtActivity.onCreate(QtActivity.java:273)
       at org.ekkescorner.examples.sharex.QShareActivity.onCreate(QShareActivity.java:61)

       

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            esabraha Eskil Abrahamsen Blomfeldt
            jirauser38076 user-4909d (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes