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

Android: Qt Quick apps crash on startup with FileNotFoundException

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • Icon: P1: Critical P1: Critical
    • None
    • 5.2.0 Beta1
    • QPA
    • None
    • Android

      Try running e.g. the Qt Quick Controls: Gallery example on Android with the latest beta1 package. It will get an exception on startup:

      E/Qt      ( 5868): java.io.FileNotFoundException: --Added-by-androiddeployqt--/qml/QtGraphicalEffects/private/GaussianDirectionalBlur.qml
      E/Qt      ( 5868): 	at android.content.res.AssetManager.openAsset(Native Method)
      E/Qt      ( 5868): 	at android.content.res.AssetManager.open(AssetManager.java:316)
      E/Qt      ( 5868): 	at android.content.res.AssetManager.open(AssetManager.java:290)
      E/Qt      ( 5868): 	at org.qtproject.qt5.android.bindings.QtActivity.copyAsset(QtActivity.java:376)
      E/Qt      ( 5868): 	at org.qtproject.qt5.android.bindings.QtActivity.extractBundledPluginsAndImports(QtActivity.java:429)
      E/Qt      ( 5868): 	at org.qtproject.qt5.android.bindings.QtActivity.startApp(QtActivity.java:465)
      E/Qt      ( 5868): 	at org.qtproject.qt5.android.bindings.QtActivity.onCreate(QtActivity.java:731)
      E/Qt      ( 5868): 	at android.app.Activity.performCreate(Activity.java:5133)
      ...
      

      This is on Windows, with an updated SDK and NDK r9b. The file is present under assets in the build directory, so maybe it's not being correctly included in the bundle by ant anymore?

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

            esabraha Eskil Abrahamsen Blomfeldt
            esabraha Eskil Abrahamsen Blomfeldt
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes