Change theme
Help
Press space for more information.
Show links for this issue (Shortcut: i, l)
Copy issue ID
Previous Issue (Shortcut: k)
Next Issue (Shortcut: j)
Sign in to use full features.
Vote: I am impacted
Notification menu
Refresh (Shortcut: Shift+r)
Go home (Shortcut: u)
Pending code changes (auto-populated)
[ID: 558956]
View issue level access limits(Press Alt + Right arrow for more information)
Unintended behavior
View staffing
Description
The following (simplified) code piece:
URL u = new URL('redacted');
URLConnection conn = u.openConnection();
will result in a crash as follows:
2019-09-07 19:53:59.259 3829-3876/redacted.redacted.net.redacted E/AndroidRuntime: FATAL EXCEPTION: IntentService[DownloadIntentService]
Process: redacted.redacted.net.redacted, PID: 3829
java.lang.NoClassDefFoundError: Failed resolution of: Lcom/android/tools/profiler/support/network/httpurl/HttpURLWrapper;
at net.redacted.redacted.tasks.DownloadIntentService.downloadFile(DownloadIntentService.java:197)
at net.redacted.redacted.tasks.DownloadIntentService.handleActionDownload(DownloadIntentService.java:102)
at net.redacted.redacted.tasks.DownloadIntentService.onHandleIntent(DownloadIntentService.java:76)
at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:68)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:154)
at android.os.HandlerThread.run(HandlerThread.java:61)
Caused by: java.lang.ClassNotFoundException: Didn't find class "com.android.tools.profiler.support.network.httpurl.HttpURLWrapper" on path: DexPathList[[zip file "/data/app/redacted.redacted.net.redacted-1/base.apk"],nativeLibraryDirectories=[/data/app/redacted.redacted.net.redacted-1/lib/x86, /data/app/redacted.redacted.net.redacted-1/base.apk!/lib/x86, /system/lib, /vendor/lib]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
at java.lang.ClassLoader.loadClass(ClassLoader.java:380)
at java.lang.ClassLoader.loadClass(ClassLoader.java:312)
at net.redacted.redacted.tasks.DownloadIntentService.downloadFile(DownloadIntentService.java:197)
at net.redacted.redacted.tasks.DownloadIntentService.handleActionDownload(DownloadIntentService.java:102)
at net.redacted.redacted.tasks.DownloadIntentService.onHandleIntent(DownloadIntentService.java:76)
at android.app.IntentService$ServiceHandler.handleMessage(IntentService.java:68)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:154)
at android.os.HandlerThread.run(HandlerThread.java:61)
A quick search on the web seems to indicate it relates to the Network profiler which would substitute some classes in order to profile. Indeed, I reproduce it when the Run/Debug configuration I use has "Enhance advanced profiling" checked (in the "Profiling" tab). After unchecking this setting, I couldn't reproduce the crash.
Technical info:
Build: AI-191.8026.42.35.5791312, 201908090002,
AI-191.8026.42.35.5791312, JRE 1.8.0_202-release-1483-b03x64 JetBrains s.r.o, OS Windows 10(amd64) v10.0 , screens 1920x1080, 1920x1080
AS: 3.5; Android Gradle Plugin: 3.3.0; Gradle: 4.10.1; NDK: from local.properties: (not specified), latest from SDK: (not found); LLDB: pinned revision 3.1 not found, latest from SDK: (package not found); CMake: from local.properties: (not specified), latest from SDK: (not found), from PATH: (not found)