Android Studio App Inspection don't start : Could not launch inspector *.inspection: Failed during instantiating inspector with id *.inspection
Asked Answered
P

2

6

I got a big problem...

The App Inspection of Android Studio don't start even after clearing caches, restart/delete AVD.

Steps done:

  1. Clear Caches
  2. Update All
  3. Delete/Recreate AVD
  4. Read All The Logs

When using it on other project it works but on this one it don't.

The only differences between other project and this one are :

Using OkHttp and Workmanager :

//okhttp
// define a BOM and its version
implementation(platform("com.squareup.okhttp3:okhttp-bom:5.0.0-alpha.11"))

// define any required OkHttp artifacts without version
implementation("com.squareup.okhttp3:okhttp")
implementation("com.squareup.okhttp3:logging-interceptor")

implementation 'androidx.work:work-runtime-ktx:2.8.1'

Even the logs don't show any differences. I have digged on internet and found nothing. Please I need expert helps.

Patois answered 18/7, 2023 at 10:23 Comment(0)
P
6

FOUND THE ANSWER !!!

I was targeting last SDK 34...

Retargeting all to SDK 33 solved the problems...

Patois answered 24/7, 2023 at 9:2 Comment(4)
This is the only solution?Lawford
Clear .idea and .gradle folder in AndroidStudio path, retarget SDK. Then upper-left File:Invalidate Caches:Everything, then rebuild Project, now it should work!Patois
To clarify my above comment : Clear .idea and .gradle folders in AndroidStudio project path. Then upper-left File:Invalidate Caches:Everything, then rebuild Project, now it should work! Also you shouldn't have any more bugs with SDK 34 as it is fully rolling out now.Patois
Followed the above steps, but it still doesn't workSuccedaneum
V
2

Seems to have been a problem in Android Studio with API Level 34. Has been fixed now. https://issuetracker.google.com/issues/297978282

Ventose answered 22/11, 2023 at 13:45 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.