Status Update
Comments
sm...@google.com <sm...@google.com>
yi...@google.com <yi...@google.com>
pe...@google.com <pe...@google.com> #3
Hello,
I’m pleased to inform you that our product engineering team has resolved the reported issue. Please verify if the problem has been resolved from your end as well.
If you encounter any further issues or have any additional concerns, please don't hesitate to create a new issue on the
I will now proceed to close this issue. If you have any other questions or need further assistance, please feel free to let us know.
Thanks & Regards
pe...@google.com <pe...@google.com> #4
Update: this fix will land in BB patch 3 (mid-late March release)
de...@google.com <de...@google.com> #5
Thank you for your patience while our engineering team worked to resolve this issue. A fix for this issue is now available in:
- Android Studio Dolphin Canary 5 (2021.3.1.5)
- Android Gradle Plugin 7.3.0-alpha05
We encourage you to try the latest update.
If you notice further issues or have questions, please file a new bug report.
Thank you for taking the time to submit feedback — we really appreciate it!
go...@gmail.com <go...@gmail.com> #6
Build #AI-211.7628.21.2111.8193401, built on February 17, 2022
Runtime version: 11.0.11+0-b60-7590822 x86_64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 11.6.3
GC: G1 Young Generation, G1 Old Generation
Memory: 4096M
Cores: 8
Registry: external.system.auto.import.disabled=true, ide.instant.shutdown=false
Non-Bundled Plugins: dev.polek.adbwifi (1.2.4), wu.seal.tool.jsontokotlin (3.7.2), org.jetbrains.kotlin (211-1.6.10-release-923-AS7442.40)
com.android.tools.build:gradle:7.3.0-alpha05
https\://
2022-03-18 10:58:32.217 9925-10877/com.xxxx.xxxx E/GlideExecutor: Request threw uncaught throwable
java.lang.NullPointerException: wrapped.contentEncoding must not be null
at com.android.tools.appinspection.network.httpurl.TrackedHttpURLConnection.getContentEncoding(TrackedHttpURLConnection.kt:177)
at com.android.tools.appinspection.network.httpurl.HttpsURLConnectionWrapper.getContentEncoding(HttpsURLConnectionWrapper.kt:166)
at com.bumptech.glide.load.data.HttpUrlFetcher.getStreamForSuccessfulRequest(HttpUrlFetcher.java:179)
at com.bumptech.glide.load.data.HttpUrlFetcher.loadDataWithRedirects(HttpUrlFetcher.java:107)
at com.bumptech.glide.load.data.HttpUrlFetcher.loadData(HttpUrlFetcher.java:58)
at com.bumptech.glide.load.model.MultiModelLoader$MultiFetcher.loadData(MultiModelLoader.java:100)
at com.bumptech.glide.load.engine.SourceGenerator.startNextLoad(SourceGenerator.java:95)
at com.bumptech.glide.load.engine.SourceGenerator.startNext(SourceGenerator.java:88)
at com.bumptech.glide.load.engine.DecodeJob.runGenerators(DecodeJob.java:311)
at com.bumptech.glide.load.engine.DecodeJob.runWrapped(DecodeJob.java:280)
at com.bumptech.glide.load.engine.DecodeJob.run(DecodeJob.java:235)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at com.bumptech.glide.load.engine.executor.GlideExecutor$DefaultThreadFactory$1.run(GlideExecutor.java:413)
at java.lang.Thread.run(Thread.java:919)
at com.bumptech.glide.load.engine.executor.GlideExecutor$DefaultPriorityThreadFactory$1.run(GlideExecutor.java:372)
pe...@google.com <pe...@google.com> #7
This will be fixed in patch 3 of BB.
ra...@gmail.com <ra...@gmail.com> #8
There was 1 root cause:
java.lang.NullPointerException(wrapped.contentEncoding must not be null)
call GlideException#logRootCauses(String) for more detail
Cause (1 of 1): class java.lang.NullPointerException: wrapped.contentEncoding must not be null
pi...@gmail.com <pi...@gmail.com> #9
com.android.tools.idea.kotlin.UninitializedPropertyAccessException: lateinit property interceptedResponse has not been initialized
at com.android.tools.appinspection.network.httpurl.TrackedHttpURLConnection.getHeaderFields(TrackedHttpURLConnection.kt:336)
at com.android.tools.appinspection.network.httpurl.HttpsURLConnectionWrapper.getHeaderFields(HttpsURLConnectionWrapper.kt:189)
at com.amazonaws.http.UrlHttpClient.createHttpResponse(UrlHttpClient.java:111)
at com.amazonaws.http.UrlHttpClient.execute(UrlHttpClient.java:85)
at com.amazonaws.http.AmazonHttpClient.executeHelper(AmazonHttpClient.java:386)
at com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:229)
at com.amazonaws.services.s3.AmazonS3Client.invoke(AmazonS3Client.java:4829)
at com.amazonaws.services.s3.AmazonS3Client.putObject(AmazonS3Client.java:1912)
at com.amazonaws.mobileconnectors.s3.transferutility.UploadTask.uploadSinglePartAndWaitForCompletion(UploadTask.java:282)
at com.amazonaws.mobileconnectors.s3.transferutility.UploadTask.call(UploadTask.java:114)
at com.amazonaws.mobileconnectors.s3.transferutility.UploadTask.call(UploadTask.java:59)
at java.util.concurrent.FutureTask.run(FutureTask.java:264)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1137)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:637)
at java.lang.Thread.run(Thread.java:1012)
Is this related? Unfortunately I don't have the permissions to create a new issue.
pe...@google.com <pe...@google.com> #10
Which version of Studio are you using?
ea...@gmail.com <ea...@gmail.com> #11
Same issue for me, lateinit property interceptedResponse has not been initialized
. I'm using this version: Android Studio Dolphin | 2021.3.1 RC 1.
pe...@google.com <pe...@google.com> #12
The lateinit exception is fixed in Giraffe.
ru...@kavak.com <ru...@kavak.com> #13
hello, I have Android Studio Dolphin | 2021.3.1 Patch 1 and I'm getting the same error with
lateinit property interceptedResponse has not been initialized
pe...@google.com <pe...@google.com> #14
Hi Ruben, unfortunately the fix is only addressed in Giraffe. Please upgrade to it if it's possible.
d....@gmail.com <d....@gmail.com> #15
"failed with exception: com.android.tools.idea.kotlin.UninitializedPropertyAccessException: lateinit property interceptedResponse has not been initialize"
Android Studio Flamingo | 2022.2.1 Beta 1
Build #AI-222.4459.24.2221.9471578, built on January 10, 2023
pe...@google.com <pe...@google.com> #16
Would you able to share the stack trace?
pb...@gmail.com <pb...@gmail.com> #17
Android Studio Electric Eel | 2022.1.1 Build #AI-221.6008.13.2211.9477386, built on January 11, 2023
FATAL EXCEPTION: FirebaseStorage-Upload-4
com.android.tools.idea.kotlin.UninitializedPropertyAccessException: lateinit property interceptedResponse has not been initialized
at com.android.tools.appinspection.network.httpurl.TrackedHttpURLConnection.getHeaderFields(TrackedHttpURLConnection.kt:337)
at com.android.tools.appinspection.network.httpurl.HttpURLConnectionWrapper.getHeaderFields(HttpURLConnectionWrapper.kt:149)
at com.google.firebase.storage.network.NetworkRequest.parseResponse(NetworkRequest.java:418)
at com.google.firebase.storage.network.NetworkRequest.performRequestStart(NetworkRequest.java:250)
at com.google.firebase.storage.network.NetworkRequest.performRequest(NetworkRequest.java:270)
at com.google.firebase.storage.network.NetworkRequest.performRequest(NetworkRequest.java:289)
at com.google.firebase.storage.UploadTask.send(UploadTask.java:518)
at com.google.firebase.storage.UploadTask.delaySend(UploadTask.java:451)
at com.google.firebase.storage.UploadTask.uploadChunk(UploadTask.java:477)
at com.google.firebase.storage.UploadTask.run(UploadTask.java:247)
at com.google.firebase.storage.StorageTask.lambda$getRunnable$7$com-google-firebase-storage-StorageTask(StorageTask.java:1072)
at com.google.firebase.storage.StorageTask$$ExternalSyntheticLambda7.run(Unknown Source:2)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.lang.Thread.run(Thread.java:923)
pa...@altametrics.com <pa...@altametrics.com> #18
ja...@gmail.com <ja...@gmail.com> #19
I am using the latest stable version of Android Studio and still facing the same issue! Please help!
Error Information:
com.android.tools.idea.kotlin.UninitializedPropertyAccessException: lateinit property interceptedResponse has not been initialized
at com.android.tools.appinspection.network.httpurl.TrackedHttpURLConnection.getHeaderFields(TrackedHttpURLConnection.kt:337)
at com.android.tools.appinspection.network.httpurl.HttpURLConnectionWrapper.getHeaderFields(HttpURLConnectionWrapper.kt:149)
...
...
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:462)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
...
...
at java.lang.Thread.run(Thread.java:923)
Android Studio Information:
Android Studio Electric Eel | 2022.1.1 Patch 1
Build #AI-221.6008.13.2211.9514443, built on January 21, 2023
Runtime version: 11.0.15+0-b2043.56-8887301 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Linux 5.15.0-58-generic
GC: G1 Young Generation, G1 Old Generation
Memory: 2048M
Cores: 12
Registry:
external.system.auto.import.disabled=true
ide.text.editor.with.preview.show.floating.toolbar=false
Non-Bundled Plugins:
com.dubreuia (2.3.0)
EclipseCodeFormatter (22.0.203.000.0-Eclipse_2021-09)
Current Desktop: ubuntu:GNOME
pe...@google.com <pe...@google.com> #20
Correction to
pe...@google.com <pe...@google.com> #21
The fix has been cherry picked into F beta 3 which will release next week Feb 14.
Description
Build: AI-211.7628.21.2111.8139111, 202202012023,
AI-211.7628.21.2111.8139111, JRE 11.0.11+9-b60-7590822x64 JetBrains s.r.o, OS Windows 10(amd64) v10.0 , screens 3200.0x1800.0
AS: Bumblebee | 2021.1.1 Patch 1; Kotlin plugin: 211-1.6.10-release-923-AS7442.40; Android Gradle Plugin: 7.1.1; Gradle: 7.3.3; Gradle JDK: version 11.0.12; NDK: from local.properties: (not specified), latest from SDK: (not found); LLDB: LLDB 3.1 (revision: 3.1.4508709); CMake: from local.properties: (not specified), latest from SDK: 3.18.1-g262b901-dirty, from PATH: (not found)
I enable network profiler (https://developer.android.com/studio/profile/network-profiler )
HttpURLConnection gets wrapped in TrackedHttpURLConnection (com.android.tools.appinspection.network.httpurl.TrackedHttpURLConnection)
I call
con.getHeaderField("Content-Type")
The method contract is "Returns: the value of the named header field, or null if there is no such field in the header."
However,
TrackedHttpURLConnection
crashes in this call with:java.lang.NullPointerException: wrapped.getHeaderField(key) must not be null
It seems that your injected TrackedHttpURLConnection breaks the contract by expecting non-null result from wrapped HttpURLConnection.
Expected fix: return null in your TrackedHttpURLConnection.getHeaderField if there's no such header field.