Android asset folder deleted
-
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?
-
@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 viaANDROID_PACKAGE_SOURCE_DIR
qmake variable in your .pro file -
@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
-
@MartinD
then place it in $$ANDROID_PACKAGE_SOURCE_DIR/assets and during build process its copied overbtw. there is never a need to copy anything to the build folder, since this is always an intermediate directory