Hello,

  I encounter a very strange problem using DexClassLoader on
android-11 (emulator), because I wasn't sure if is my fault I tested
android-custom-class-loading-sample[1] which was introduced in this
[2] blog post. The example is working perfectly on all android
versions (4,5,8,9,10,12,13) except android-11 which gives me the
following errors:
E/dalvikvm(  343): Can't open dex cache '/data/dalvik-cache/
data@d...@com.example.dex@app_dex@secondary_dex....@classes.dex': No
such file or directory
I/dalvikvm(  343): Unable to open or create cache for /data/data/
com.example.dex/app_dex/secondary_dex.jar (/data/dalvik-cache/
data@d...@com.example.dex@app_dex@secondary_dex....@classes.dex)
W/System.err(  343): java.lang.ClassNotFoundException:
com.example.dex.lib.LibraryProvider in loader
dalvik.system.DexClassLoader@406445c0
W/System.err(  343):    at
dalvik.system.DexClassLoader.findClass(DexClassLoader.java:240)
W/System.err(  343):    at
java.lang.ClassLoader.loadClass(ClassLoader.java:548)
W/System.err(  343):    at
java.lang.ClassLoader.loadClass(ClassLoader.java:508)
W/System.err(  343):    at com.example.dex.MainActivity
$1.onClick(MainActivity.java:79)
W/System.err(  343):    at android.view.View.performClick(View.java:
3100)
W/System.err(  343):    at android.view.View
$PerformClick.run(View.java:11644)
W/System.err(  343):    at
android.os.Handler.handleCallback(Handler.java:587)
W/System.err(  343):    at
android.os.Handler.dispatchMessage(Handler.java:92)
W/System.err(  343):    at android.os.Looper.loop(Looper.java:126)
W/System.err(  343):    at
android.app.ActivityThread.main(ActivityThread.java:3997)
W/System.err(  343):    at
java.lang.reflect.Method.invokeNative(Native Method)
W/System.err(  343):    at java.lang.reflect.Method.invoke(Method.java:
491)
W/System.err(  343):    at com.android.internal.os.ZygoteInit
$MethodAndArgsCaller.run(ZygoteInit.java:841)
W/System.err(  343):    at
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:599)
W/System.err(  343):    at dalvik.system.NativeStart.main(Native
Method)
D/SntpClient(   67): request time failed: java.net.SocketException:
Address family not supported by protocol

The problem is that my application depends by this feature, so I want
to ask if is there any (known) workaround for this issue ? I also
tried with PathClassLoader but the result was the same, any idea will
be very appreciated !

Thank you.

BogDan.

[1] http://code.google.com/p/android-custom-class-loading-sample/
[2] 
http://android-developers.blogspot.com/2011/07/custom-class-loading-in-dalvik.html

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to