I want to add .jar dynamically. So I make a demo. But I don't know how to new the DexClassLoader. I don't know how to add the first params.
final File optimizedDexOutputPath = new File("" + File.pathSeparator + "test.jar");
//PackageManager pm = getPackageManager();
String dexOutputDir = getApplicationInfo().dataDir;
DexClassLoader dexClassLoader = new DexClassLoader("", dexOutputDir, null, getClassLoader());
I have made the dynamical .jar as test.jar(become dex) as well as a new folder 'text' in projects and put the text.jar in it.
Can you help me see what I have done wrong?