Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Android asset folder deleted
Forum Updated to NodeBB v4.3 + New Features

Android asset folder deleted

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
4 Posts 2 Posters 572 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    MartinD
    wrote on last edited by
    #1

    Hi,
    I install some resources into asset folder during my Qt 5.11 Android app build. I noticed the asset folder is deleted during every build.

    I install several hundreds MB of resources to asset folder. Is it possible to make asset folder persistent? Also I want Qt to install resources into asset folder only when a destination file do not exist or when it is older than source file. Is that possible?

    raven-worxR 1 Reply Last reply
    0
    • M MartinD

      Hi,
      I install some resources into asset folder during my Qt 5.11 Android app build. I noticed the asset folder is deleted during every build.

      I install several hundreds MB of resources to asset folder. Is it possible to make asset folder persistent? Also I want Qt to install resources into asset folder only when a destination file do not exist or when it is older than source file. Is that possible?

      raven-worxR Offline
      raven-worxR Offline
      raven-worx
      Moderators
      wrote on last edited by
      #2

      @MartinD said in Android asset folder deleted:

      I install some resources into asset folder during my Qt 5.11 Android app build. I noticed the asset folder is deleted during every build.

      where is that asset folder located exactly?
      The assets folder should rely in the path you specified via ANDROID_PACKAGE_SOURCE_DIR qmake variable in your .pro file

      --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
      If you have a question please use the forum so others can benefit from the solution in the future

      M 1 Reply Last reply
      0
      • raven-worxR raven-worx

        @MartinD said in Android asset folder deleted:

        I install some resources into asset folder during my Qt 5.11 Android app build. I noticed the asset folder is deleted during every build.

        where is that asset folder located exactly?
        The assets folder should rely in the path you specified via ANDROID_PACKAGE_SOURCE_DIR qmake variable in your .pro file

        M Offline
        M Offline
        MartinD
        wrote on last edited by MartinD
        #3

        @raven-worx It is build-MyProject-Android_for_armeabi_v7a_GCC_4_9_Qt_5_11_2_android_armv7-Debug\android-build\assets

        I use Qt Creator 4.7.2.

        I install resources into asset folder using:

        resources.path = /assets/resources
        resources.files = $$PWD/resources/*
        INSTALLS += resources
        
        raven-worxR 1 Reply Last reply
        0
        • M MartinD

          @raven-worx It is build-MyProject-Android_for_armeabi_v7a_GCC_4_9_Qt_5_11_2_android_armv7-Debug\android-build\assets

          I use Qt Creator 4.7.2.

          I install resources into asset folder using:

          resources.path = /assets/resources
          resources.files = $$PWD/resources/*
          INSTALLS += resources
          
          raven-worxR Offline
          raven-worxR Offline
          raven-worx
          Moderators
          wrote on last edited by raven-worx
          #4

          @MartinD
          then place it in $$ANDROID_PACKAGE_SOURCE_DIR/assets and during build process its copied over

          btw. there is never a need to copy anything to the build folder, since this is always an intermediate directory

          --- SUPPORT REQUESTS VIA CHAT WILL BE IGNORED ---
          If you have a question please use the forum so others can benefit from the solution in the future

          1 Reply Last reply
          0

          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • Users
          • Groups
          • Search
          • Get Qt Extensions
          • Unsolved