Skip to content

Snappy1

  • Home
  • Android
  • What
  • How
  • Is
  • Can
  • Does
  • Do
  • Why
  • Are
  • Who
  • Toggle search form

[FIXED] java – How to solve debug issue

Posted on November 11, 2022 By

Solution 1 :

Issues of that sort usually get fixed when you make a clean build then try again, if not try invalidating caches and restarting (File > Invalidate caches/restart)

Solution 2 :

At the end, the solution was to disable the breakpoints. Especifically the Java Exception breakpoints and Excepction breakpoints, also deleted all my breakpoints just in case. And I can debug again!

To delete breakpoints just go to Run>>View Breakpointsand and uncheck

I hope this helps other newbies like me

This is the screen, just uncheck the "lighting" breakpoints

Problem :

Everything was working just fine, but then when I tried to debug again my app. It didn’t work and instead, I got the message,

“alternative source available for the class java.lang.class android studio”

I didn’t know what it meant. I clicked on disable, now I can’t debug anymore and it says the library Dalvik.annotation.optimization.FastNative is not found (java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack trace available)

Does somebody know how to fix this issue? I can run the app, but as you know.. debugging is very useful, especially for someone like me. That has been working with android for just one month ago

I’m using Android Studio 3.6

This is the screen I get when I try to debug

Comments

Comment posted by Marco Espinoza

Thanks, just did as you said and I now I’m getting the next message Android Studio and Gradle are using different locations for the JDK. Android Studio: C:Program FilesAndroidAndroid Studiojre Gradle: C:Program FilesJavajdk1.8.0_241 Using different JDK locations might cause Gradle to spawn multiple daemons when executing tasks for Android Studio and other external processes. More info… Select a JDK from the File System Do not show this warning again

READ  [FIXED] android - launchUrl with external Google/Apple Maps, Flutter
Powered by Inline Related Posts

Comment posted by 92AlanC

Set the IDE’s JDK location to the same as the one set in your PATH environment variable. Since you’re using Windows, run this command to find your JDK location:

Comment posted by Marco Espinoza

I just solved and posted the answer, thanks a lot for your kind help

Comment posted by Benjamin Kershner

It might be helpful to add that you can re-enable the breakpoints after a successful rebuild. (or at least, I was able to).

Android Tags:android, android-studio, java

Post navigation

Previous Post: [FIXED] android – how to change notification background color in nougat?
Next Post: [FIXED] android – How to make width ratio equal in XML GridView

Related Posts

[FIXED] java – Delay repeat animation in reverse mode Android
[FIXED] react-native android studio leaves empty modules Android
[FIXED] java – Appium Android – take screenshot returns “Illegal base64 character a” Android
[FIXED] android – W/Firestore: (24.1.2) [CustomClassMapper]: No setter/field for about found on class Android
[FIXED] java – How to extract a bitmap from a video? Android
[FIXED] c# – How to ask authorization for save image in Gallery on Android using Xamarin? Android

Archives

  • March 2023
  • February 2023
  • January 2023
  • December 2022
  • November 2022
  • October 2022
  • September 2022

Categories

  • ¿Cómo
  • ¿Cuál
  • ¿Cuándo
  • ¿Cuántas
  • ¿Cuánto
  • ¿Qué
  • Android
  • Are
  • At
  • C'est
  • Can
  • Comment
  • Did
  • Do
  • Does
  • Est-ce
  • Est-il
  • For
  • Has
  • Hat
  • How
  • In
  • Is
  • Ist
  • Kann
  • Où
  • Pourquoi
  • Quand
  • Quel
  • Quelle
  • Quelles
  • Quels
  • Qui
  • Should
  • Sind
  • Sollte
  • Uncategorized
  • Wann
  • Warum
  • Was
  • Welche
  • Welchen
  • Welcher
  • Welches
  • Were
  • What
  • What's
  • When
  • Where
  • Which
  • Who
  • Who's
  • Why
  • Wie
  • Will
  • Wird
  • Wo
  • Woher
  • you can create a selvedge edge: You can make the edges of garter stitch more smooth by slipping the first stitch of every row.2022-02-04
  • you really only need to know two patterns: garter stitch

Recent Posts

  • Can VPN be traced by police?
  • Where were Kaiser-Frazer cars built?
  • How do you make gold rose gold paint?
  • What are the newest type of dentures?
  • Can you wear joggers as dress pants?

Recent Comments

No comments to show.

Copyright © 2023 Snappy1.

Powered by PressBook Grid Dark theme