QT_ANDROID_MAX_PREPOPULATED_ASSETS_CACHE_SIZE
-
While deploying Qt Project to android i am getting this error
[WARN | default] Prepopulated cache is too large to read. LOGCAT: W Custom ApplicationManager: Use environment variable QT_ANDROID_MAX_PREPOPULATED_ASSETS_CACHE_SIZE to adjust size
Can any one point me what is this environment variable and how it is used.
Thanks,
-
Hi,
@TopNotch_Mach07 said in QT_ANDROID_MAX_PREPOPULATED_ASSETS_CACHE_SIZE:
QT_ANDROID_MAX_PREPOPULATED_ASSETS_CACHE_SIZE
Just a wild guess but if not the Build environment, you can put it in the Run environment part of the Project panel.
-
The thing is I don't know what value to set to that variable. While googling I found that this comes from qandroidassetsfileenginehandler.cpp class.
and it is used to set the cache size.
on line no : 280 , It uses something like 1024LL * 1024LL , which is 1048576 in Bytes I guess.
Say , If want to set it to 50 MB of cache size , How can I set that ?
something like
QT_ANDROID_MAX_PREPOPULATED_ASSETS_CACHE_SIZE =52428800 ?? -
From the looks of it, I would say yes.
-
Giving the parameter in qt creator environment variable didn't work. But using qputenv() environment variable worked.