对于Android Studio v2.2,不推荐使用DDMS,而选择Android Device Monitor.但是当我尝试打开监视器时,它没有打开,因为它依赖于遗留的Java SE 6运行时,这在我的Mac Os Sierra中缺失.这太疯狂了,不是吗?
我想尝试模拟传入的短信,从监视器到模拟器的电话.此监视器不适用于jdk 7/8.出路是什么?
android android-studio-2.2 android-sms android-monitor android-phone-call
我正在物理设备上测试我的应用
在调试运行
Console
$ adb push C:\Users\arjun\AndroidStudioProjects\Scol\app\build\outputs\apk\app-debug.apk /data/local/tmp/com.example.arjun.scol
$ adb shell pm install -r "/data/local/tmp/com.example.arjun.scol"
pkg: /data/local/tmp/com.example.arjun.scol
Success
$ adb shell am start -n "com.example.arjun.scol/com.example.arjun.scol.login.Login" -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -D
Waiting for application to come online: com.example.arjun.scol | com.example.arjun.scol.test
Waiting for application to come online: com.example.arjun.scol | com.example.arjun.scol.test
Connecting to com.example.arjun.scol
Connected to the target VM, address: 'localhost:8600', transport: 'socket'
Disconnected from the target VM, address: 'localhost:8600', transport: 'socket'
Run Code Online (Sandbox Code Playgroud)
我的应用程序因错误而崩溃,但...中没有显示任何内容debug console...这发生在updating android studio to 2.3..
但是当我滚动浏览时 …
debugging android-logcat android-debug android-studio android-monitor
我有 Android Studio 3.0 项目结构中的设置 - JDK 位置 -"C:\Java\jdk1.8"还有我的 1.8 jdk。但是在这台 PC 上,JAVA_HOME 变量设置为"C:\Java\jdk1.7".
然后我无法打开Android设备监视器。我收到一个日志文件说:
java.version=1.7.0_80
....
org.osgi.framework.BundleException: The activator com.android.ide.eclipse.monitor.MonitorPlugin for bundle com.android.ide.eclipse.monitor is invalid
Caused by: java.lang.UnsupportedClassVersionError: com/android/prefs/AndroidLocation$AndroidLocationException : Unsupported major.minor version 52.0
Run Code Online (Sandbox Code Playgroud)
在不更改 JAVA_HOME 的情况下,如何使用 jdk1.8 运行 Android Studio?