Android: fix ClassLoader warning
The Dex value provided is an empty string which leads to this system warning when initiating an instance of the ClassLoader W System : ClassLoader referenced unknown path: This patch fixes it by providing a valid path. Task-number: QTBUG-115016 Change-Id: I6dcd396a07337278224e07b0271f49bb829ea0ce Reviewed-by: Tinja Paavoseppä <tinja.paavoseppa@qt.io>bb10
parent
db91947eb0
commit
6f1449c7ae
|
|
@ -146,7 +146,8 @@ public abstract class QtLoader {
|
|||
{
|
||||
// directory where optimized DEX files should be written.
|
||||
String outDexPath = m_context.getDir("outdex", Context.MODE_PRIVATE).getAbsolutePath();
|
||||
m_classLoader = new DexClassLoader("", outDexPath, null, m_context.getClassLoader());
|
||||
String sourceDir = m_context.getApplicationInfo().sourceDir;
|
||||
m_classLoader = new DexClassLoader(sourceDir, outDexPath, null, m_context.getClassLoader());
|
||||
QtNative.setClassLoader(m_classLoader);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue