App:dexdebug - Unexpected Top-level Exception - On Asynctask
Oh how I hate this error. I'm getting the dreaded dexDebug error, but this time around I have no idea how to fix it. The exact error is: Information:Gradle tasks [:app:assembleDeb
Solution 1:
OK, based on Android dex issue: nested class + final boolean : com.android.dex.util.ExceptionWithContext, I figured there is something wrong with the inner class I am creating for the async task. So what I did was I changed the class declaration of the AsyncTask from private to public:
privateclassMyLoadWebViewextendsAsyncTask<String, Void, Void> { ..
to
publicclassMyInnerLoadWebViewextendsAsyncTask<String, Void, Void> { ..
And it worked!!!!
I still don't know why this is, but seems like a serious bug. Any comments?
Post a Comment for "App:dexdebug - Unexpected Top-level Exception - On Asynctask"