Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

Changing from Qt5.12.1 to Qt5.14.1 for Android



  • I am basically recompiling my app against Qt5.14.1. It was running with Qt5.12.1.

    The app shows besides the icon at top a blank screen and no processing is done.

    W ssProcessingApp: type=1400 audit(0.0:93822): avc: denied { read } for name="u:object_r:vendor_displayfeature_prop:s0" dev="tmpfs" ino=27787 scontext=u:r:untrusted_app_27:s0:c57,c256,c512,c768 tcontext=u:object_r:vendor_displayfeature_prop:s0 tclass=file permissive=0
    E libc    : Access denied finding property "ro.vendor.df.effect.conflict"
    E ssProcessingAp: Invalid ID 0x00000000.
    E Qt      : Can't create main activity
    E Qt      : android.content.res.Resources$NotFoundException: String array resource ID #0x0
    E Qt      : 	at android.content.res.Resources.getStringArray(Resources.java:616)
    E Qt      : 	at android.content.res.MiuiResources.getStringArray(MiuiResources.java:160)
    E Qt      : 	at org.qtproject.qt5.android.bindings.QtLoader.startApp(QtLoader.java:423)
    E Qt      : 	at org.qtproject.qt5.android.bindings.QtActivityLoader.onCreate(QtActivityLoader.java:166)
    E Qt      : 	at org.qtproject.qt5.android.bindings.QtActivity.onCreateHook(QtActivity.java:266)
    E Qt      : 	at org.qtproject.qt5.android.bindings.QtActivity.onCreate(QtActivity.java:273)
    E Qt      : 	at android.app.Activity.performCreate(Activity.java:7894)
    E Qt      : 	at android.app.Activity.performCreate(Activity.java:7881)
    E Qt      : 	at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1307)
    E Qt      : 	at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:3279)
    E Qt      : 	at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:3443)
    E Qt      : 	at android.app.servertransaction.LaunchActivityItem.execute(LaunchActivityItem.java:83)
    E Qt      : 	at android.app.servertransaction.TransactionExecutor.executeCallbacks(TransactionExecutor.java:135)
    E Qt      : 	at android.app.servertransaction.TransactionExecutor.execute(TransactionExecutor.java:95)
    E Qt      : 	at android.app.ActivityThread$H.handleMessage(ActivityThread.java:2040)
    E Qt      : 	at android.os.Handler.dispatchMessage(Handler.java:107)
    E Qt      : 	at android.os.Looper.loop(Looper.java:224)
    E Qt      : 	at android.app.ActivityThread.main(ActivityThread.java:7520)
    E Qt      : 	at java.lang.reflect.Method.invoke(Native Method)
    E Qt      : 	at com.android.internal.os.RuntimeInit$MethodAndArgsCaller.run(RuntimeInit.java:539)
    E Qt      : 	at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:950)
    E Perf    : Fail to get file list debug-socket
    E Perf    : getFolderSize() : Exception_1 = java.lang.NullPointerException: Attempt to get length of null array
    E Perf    : Fail to get file list co.company.ProcessingApp
    E Perf    : getFolderSize() : Exception_1 = java.lang.NullPointerException: Attempt to get length of null array
    E Perf    : Fail to get file list co.company..ProcessingApp
    E Perf    : getFolderSize() : Exception_1 = java.lang.NullPointerException: Attempt to get length of null array
    I AdrenoGLES: QUALCOMM build                   : e0436c5, Ib165d46056
    
    

    These are the settings for SDK and NDK
    40435fb7-d4ac-4f8a-93db-2f994704ad92-image.png

    Has anybody an idea of what to change?

    I confirmed that the source is still working when compiled against Qt5.12.1
    with these settings
    8a89f925-b5be-45db-9914-945e619d16e0-image.png



  • Same in here. Android build was running properly with Qt5.12 and 5.13, but stopped working with 5.14.1 with the same error and trace.


  • Moderators

    What's the Qt Creator version ?

    Qt 5.14 has now also a new minimal QtCreator version, due to the aab changes

    IIRC it was 4.11



  • In my case Qt Creator 4.11.1


  • Moderators

    @eduardo-paz-pix4d
    ok,
    does a normal hello world program work ?



  • ShaderEffects and FileTree examples work. I will check the differences. Thanks.



  • Hi @koahnig

    I found the reason. There were some changes in Qt5.14 so you will probably have to update your manifest and libs.xml in order to meet the new changes.

    These links were helpful to me:

    Regards.


Log in to reply