Run Code Online (Sandbox Code Playgroud)$ adb --help
...
Run Code Online (Sandbox Code Playgroud)-s SERIAL use device with given serial (overrides $ANDROID_SERIAL)
...
Run Code Online (Sandbox Code Playgroud)$ adb devices List of devices attached emulator-5554 device 7f1c864e device
...
Run Code Online (Sandbox Code Playgroud)$ adb shell -s 7f1c864e error: more than one device and emulator
?
当我在调试模式下运行时,应用程序崩溃了,但是当我正常运行它时它会起作用.我认为附加调试器时会出现问题.
日志:
A/art: art/runtime/jdwp/jdwp_event.cc:661] Check failed: Thread::Current() != GetDebugThread() (Thread::Current()=0x7f44a18400, GetDebugThread()=0x7f44a18400) Expected event thread
A/art: art/runtime/runtime.cc:422] Runtime aborting...
A/art: art/runtime/runtime.cc:422] Aborting thread:
A/art: art/runtime/runtime.cc:422] "JDWP" prio=5 tid=4 WaitingForDebuggerSend
A/art: art/runtime/runtime.cc:422] | group="" sCount=0 dsCount=0 obj=0x12c60280 self=0x7f44a18400
A/art: art/runtime/runtime.cc:422] | sysTid=24137 nice=0 cgrp=default sched=0/0 handle=0x7f4b904450
A/art: art/runtime/runtime.cc:422] | state=R schedstat=( 132066712 16401043 106 ) utm=9 stm=2 core=3 HZ=100
A/art: art/runtime/runtime.cc:422] | stack=0x7f4b80a000-0x7f4b80c000 stackSize=1005KB
A/art: art/runtime/runtime.cc:422] | held mutexes= "abort lock"
A/art: art/runtime/runtime.cc:422] native: #00 pc 000000000047e2cc /system/lib64/libart.so (_ZN3art15DumpNativeStackERNSt3__113basic_ostreamIcNS0_11char_traitsIcEEEEiP12BacktraceMapPKcPNS_9ArtMethodEPv+220)
A/art: …Run Code Online (Sandbox Code Playgroud) debugging android android-debug android-studio android-debugging
UPDATE 的假设重复是被stucking在"问题等待对于调试器执行时" 运行,而这个问题是被在"stucking 等待对于调试器 "执行时调试,以产生步骤的问题是不同的,并且将溶液( s)也不同.
每当我尝试使用Android Studio的Debug函数时,Run状态将始终停留在:
Launching application: com.astrotek.parashoot.debug/com.astrotek.ptpviewer.StarterActivity.
DEVICE SHELL COMMAND: am start -n "com.astrotek.parashoot.debug/com.astrotek.ptpviewer.StarterActivity" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER
Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] cmp=com.astrotek.parashoot.debug/com.astrotek.ptpviewer.StarterActivity }
Run Code Online (Sandbox Code Playgroud)
虽然我正在调试的设备(三星Galaxy S3 Android 4.3)会显示

这是从Android Studio 0.8.8一直到1.0的情况.在同一台计算机上,我可以在同一台设备上使用Eclipse进行调试,没有任何问题.
所以问题是我可以做些什么来使Android Studio调试工作?
更新:在运行Android 5.0的Nexus 7(2013)上进行调试时会发生同样的情况.并在另一台机器上测试得到了相同的结果.我不可能是遇到这个问题的唯一一个: - /
更新:打开赏金,因为这个问题太烦人了.即使重新安装应用程序也无法解决.Nexus 5运行Cyano,Win7 64.ADB日志告诉:
8568-8568/it.myapp:myprocess W/ActivityThread? Application it.myapp is waiting for the debugger on port 8100...
8568-8568/it.myapp:myprocess I/System.out? Sending WAIT chunk
Run Code Online (Sandbox Code Playgroud)
另外,我找不到在Android Studio中断开连接或重置ADB连接的简便方法.
我可以使用adb connect连接到我的手机,我也可以adb shell.
但是当我去Run-> Device Chooser时,那里没有设备.
我该怎么做才能连接我的(连接的)adb Android Studio?
当我通过USB插入它时,它会显示在列表中
然后在API级别为23的真实设备上调试它:
问题是当我尝试通过Android OS自己的类进行调试时,我得到'源代码与字节码不匹配'.为什么会这样?应用程序运行的测试设备是API级别23,正在调试的源文件也是级别23.

我真的很困惑.任何人都可以解释为什么我看到这个消息以及我如何解决它?
java android android-debug android-studio android-6.0.1-marshmallow
这些天我正在将我的开发环境从Eclipse切换到Android Studio.我真的很喜欢它的自动完成功能以及这个IDE提供的许多其他功能.但是,在进行调试时我遇到了一些问题.
我希望使用这个IDE提供的Monitor工具,自包含DDMS和非常好的可视化界面来跟踪内存使用情况,线程状况等.但我无法找到一种方法,可以使用我必须创建的断点逐步支持(编辑器中的红点)
我只能通过不打开此监视器来逐步调试.因为当我在调试器运行时尝试使用Monitor时,它会弹出一个窗口,要求我先断开ADB.我也找不到从Monitor启动应用程序的地方.
在Android Studio中同时使用Monitor时,有没有办法逐步调试?
注意:错误可能会有所不同,但如果您在过去两天没有对代码进行任何更改的情况下进行 Android 构建时遇到任何错误
我的错误 - 无法安装应用程序。错误:命令失败:./gradlew app:installDebug -PreactNativeDevServerPort=8081
error Failed to install the app. Make sure you have the Android development environment set up:
Error: Command failed: ./gradlew app:installDebug
-PreactNativeDevServerPort=8081
FAILURE: Build failed with an exception.
* Where: Build file '/Users/....../node_modules/react-native-month-year-picker/android/build.gradle' line: 115
* What went wrong: A problem occurred configuring project ':react-native-month-year-picker'.
> Could not resolve all files for configuration ':react-native-month-year-picker:implementation'.
> Could not resolve com.facebook.react:react-native:+.
Required by:
project :react-native-month-year-picker
> Cannot choose between the following variants of com.facebook.react:react-native:0.71.0-rc.0: …Run Code Online (Sandbox Code Playgroud) 我在网上搜索了关于android中的Tombstones.我找不到任何可以理解的消息来源.我想知道android中的墓碑是什么?
当我尝试在android studio中使用android设备进行调试时,Logcat没有显示任何内容.但是当我使用模拟器时,LogCat会显示所有消息.在实际设备上调试时应该如何查看Logcat消息?
谢谢 !
出于某种原因,我必须在发布模式下运行我的Android应用程序.我必须在运行应用程序时运行代码,就像我们在调试模式下使用一样.当我在发布模式下运行时,我的断点没有达到,我android:debuggable="true"在清单中添加了.断点还没有打到.任何帮助.
提前致谢
android ×10
android-debug ×10
adb ×4
cmd ×1
ddms ×1
debugging ×1
gradle ×1
java ×1
javascript ×1
logcat ×1
react-native ×1
shell ×1
stack-trace ×1