Webpack not accessible in Chrome/Edge Developer Tools - browser

I'm working on some webview pages and need to debug it on Android Emulator. When I open "chrome://inspect/#devices" in the Chrome Browser, I can find the emulator device which I use, then inspect the webview page I programmed, but I can't find the Webpack folder in the developer tools.
https://s3.bmp.ovh/imgs/2022/02/22b5d078b93d07e8.png
the strange thing is that I can find the webpack file by open the browser and type in my local dev url like: http:127.0.0.1:7000
like this:
https://i.bmp.ovh/imgs/2022/02/0cacb2fa243843d7.png
I have already enable the source map for JS in developer tool settings.
the application version:
Android Studio Bumblebee | 2021.1.1 Patch 1
Build #AI-211.7628.21.2111.8139111, built on February 2, 2022
Runtime version: 11.0.11+9-b60-7590822 amd64
VM: OpenJDK 64-Bit Server VM by Oracle Corporation
Windows 10 10.0
GC: G1 Young Generation, G1 Old Generation
Memory: 1280M
Cores: 20
Registry: external.system.auto.import.disabled=true
Chrome: Version 98.0.4758.82 (Official Build) (64-bit)

Related

How to resolve Android Studio Giraffe (M1) does not always deploy latest changes

my team (that employ Mac Chip version of android studio on mac book pros) are facing this issue
when using android studio version
Android Studio Giraffe | 2022.3.1 Canary 2
Build #AI-223.7571.182.2231.9523943, built on January 25, 2023
Runtime version: 17.0.5+0-17.0.5b653.25-9484017 x86_64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 12.6.1
GC: G1 Young Generation, G1 Old Generation
Memory: 2048M
Cores: 12
Metal Rendering is ON
Registry:
external.system.auto.import.disabled=true
ide.text.editor.with.preview.show.floating.toolbar=false
ide.images.show.chessboard=true
Non-Bundled Plugins:
com.android.aas (3.5.1)
the rest of our development team that use intel chip version of android studio on mac books have no issues at all.
from the google issue tracker i can see that android studio bumblebee had a similar issue that was fixed.
does anyone have a fix for this issue in Giraffe?

How to hide generated packages in Android Studio

i am using android studio
Android Studio Electric Eel | 2022.1.1 Canary 2
Build #AI-213.7172.25.2211.8571212, built on May 11, 2022
Runtime version: 11.0.13+0-b1751.21-8125866 x86_64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 10.15.7
GC: G1 Young Generation, G1 Old Generation
Memory: 4096M
Cores: 12
Registry:
external.system.auto.import.disabled=true
ide.text.editor.with.preview.show.floating.toolbar=false
Non-Bundled Plugins:
com.android.aas (3.5.1)
and would like to hide the following generated packages which are currently visible when i employ the Android view
You can just "right click the directory -> Mark Directory as -> Excluded"
If you want to "Not Excluded" the directory, just find the directory and do the same action above.
For your example path:
/{projectName}/app/build/generated/source/kapt/{Variant}/

Android studio: Bumblebee cannot save device screenshots or videos captured from logcat screen

Since updating my android studio to the following version:
Android Studio Bumblebee | 2021.1.1 Patch 2
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 10.15.7
GC: G1 Young Generation, G1 Old Generation
Memory: 4096M
Cores: 12
Registry: external.system.auto.import.disabled=true, debugger.watches.in.variables=false
Non-Bundled Plugins: org.jetbrains.kotlin (211-1.6.10-release-923-AS7442.40)
I'm unable to save either screenshots or videos captured from real devices via the logcat screen.
I get as far as the popup asking the save location, and when I click on the save button nothing happens and android studio is completely locked.
The only option I have is to force quit android studio and restart it.
How can I restore this functionality?
It has never been an issue for me in the past 5 years with android studio.

How to successfully Restart App Inspection in Android Studio Bumblebee

Im trying this version of Android Studio
Android Studio Bumblebee | 2021.1.1 Beta 4
Build #AI-211.7628.21.2111.7905991, built on November 11, 2021
Runtime version: 11.0.11+0-b60-7590822 x86_64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
macOS 10.15.7
GC: G1 Young Generation, G1 Old Generation
Memory: 4096M
Cores: 12
Registry: external.system.auto.import.disabled=true
Non-Bundled Plugins: org.jetbrains.kotlin (211-1.6.0-release-798-AS7442.40)
I realise its a Beta release, however Im having difficulty with the App Inspection tool.
Its fine at the start of the day, once I have stopped it and attempt to restart it consistently fails.
Ive tried closing and reopening Android Studio, restarting Android Studio, invalidating cache and restarting Android Studio, clear file system cache and local history and restarting Android Studio
none of these actions can resolve the error state of
Could not launch inspector androidx.sqlite.inspection: Inspector with the given id androidx.sqlite.inspection already exists. It was launched by project MyProject
Is there an approach I should be taking to resolve this issue?

URL not showing in android studio logcat

When I am trying to log any URL like we have an URL for an API call
I tried
url = "https://google.com"
Log.e("url",url)
This is how a URL is shown
E/url: ******************
I am using Windows 10 Android Studio:
Android Studio 4.2.1
Build #AI-202.7660.26.42.7351085, built on May 10, 2021
Runtime version: 11.0.8+10-b944.6842174 amd64
VM: OpenJDK 64-Bit Server VM by N/A
Windows 10 10.0
GC: G1 Young Generation, G1 Old Generation
Memory: 1280M
Cores: 8
Registry: external.system.auto.import.disabled=true
if in Logcat URL is not printed then uninstall app and install again it is working (Vivo android 12)

Resources