我已经将我的Nexus 5升级到Android 5以及Eclipse Luna下的SDK +插件.我无法在我的机器人上调试!
应用程序LogCat:
11-26 18:10:54.474: I/art(5890): Late-enabling -Xcheck:jni 11-26 18:10:54.527: W/ActivityThread(5890): Application com.whizzthrough.android2 is waiting for the debugger on port 8100... 11-26 18:10:54.527: I/System.out(5890): Sending WAIT chunk 11-26 18:10:54.533: I/art(5890): Debugger is active 11-26 18:10:54.594: W/art(5890): GLITCH: unsupported modKind=MK_SOURCE_NAME_MATCH 11-26 18:10:54.594: A/art(5890): art/runtime/jdwp/jdwp_request.cc:48] Check failed: p_ == end_ read too few bytes: 16 11-26 18:10:54.727: I/System.out(5890): Debugger has connected 11-26 18:10:54.727: I/System.out(5890): waiting for debugger to settle... 11-26 18:10:54.750: A/art(5890): art/runtime/runtime.cc:284] Runtime aborting... 11-26 18:10:54.750: A/art(5890): art/runtime/runtime.cc:284] …
正如文档所述,启动器图标为48*48dp.
所以我认为我的nexus 5上的启动器图标应该是144*144px.
但是我研究了我的nexus 5的截图,我发现它几乎是166*163px.
为什么它比144*144px更大?
(ps在drawable-xxhdpi文件夹中带有144*144px图标的应用程序在启动器中也会显示166*163px.)
这是我的截图:
输入adb -s emulator-5554 emu finger touch 1后没有响应.这是参考链接 https://github.com/googlesamples/android-FingerprintDialog/issues/2
更新 (Android 6) 我的 nexus 5 后,我正在运行的应用程序无法扫描(找到)任何蓝牙设备。getBondedDevices() 使配对设备列表正常工作。
我还测试了许多蓝牙功能的示例代码和应用程序(我在下面放了链接)。都是一样的问题,找不到蓝牙设备。
但是,是的,我在 Play 商店中只找到了一个正在运行的应用程序,它能够发现/扫描蓝牙设备。
无法在 Android 6 (Nexus 5) 上运行的应用程序我测试了许多应用程序,例如bluetrem、Android Developer 的示例代码等等。
工作应用 蓝牙 4.0 扫描仪 https://play.google.com/store/apps/details?id=com.bluemotionlabs.bluescan
有没有人知道是什么问题,是否需要对代码进行任何更改才能与 Android 6 兼容
android bluetooth nexus-5 network-scan android-6.0-marshmallow
我只是为锤头构建了AOSP 6.0,并尝试对其进行刷新。我的手机冻结了Google徽标,并拒绝启动。我假设我需要使用在这里找到的专有二进制文件https://developers.google.com/android/nexus/drivers
我将如何提取它们并将其放入我的构建中?谢谢。
我正在尝试开发一个应用程序,以便在切换时点击手电筒.我尝试了我在网络上找到的所有方法,但在我的nexus 5中没有成功.唯一有效的应用程序是cyanogenmod火炬,但即使我接受了该代码并在应用程序中编写它,它会创建一个通知,如果点击它打开cyanogenmod火炬应用程序,而不是我的!这是个问题!!是否有可能有一个简单的代码也适用于nexus 5?
public void turnOffFlashLight() {
try {
if (getPackageManager().hasSystemFeature(PackageManager.FEATURE_CAMERA_FLASH)) {
cam.stopPreview();
cam.release();
cam = null;
}
} catch (Exception e) {
e.printStackTrace();
Toast.makeText(getBaseContext(), "Exception throws in turning off flashlight.", Toast.LENGTH_SHORT).show();
}
}
public void turnOnFlashLight() {
try {
if (getPackageManager().hasSystemFeature(PackageManager.FEATURE_CAMERA_FLASH)) {
cam = Camera.open();
cam.setPreviewTexture(new SurfaceTexture(0));
Parameters p = cam.getParameters();
p.setFlashMode(Parameters.FLASH_MODE_TORCH);
cam.setParameters(p);
cam.startPreview();
}
} catch (Exception e) {
e.printStackTrace();
Toast.makeText(getBaseContext(), "Exception throws in turning on flashlight.", Toast.LENGTH_SHORT).show();
}
}
Run Code Online (Sandbox Code Playgroud)
编辑:logcat
04-09 21:52:21.967: E/AndroidRuntime(5346): FATAL EXCEPTION: main
04-09 …
Run Code Online (Sandbox Code Playgroud) 嘿,我正在尝试从lynda.com学习Android SDK开发.
他们让我更新我的USB驱动程序.
我下载驱动程序解压缩它.当我尝试在MTP模式下更新它时,它说
Device driver up to date
Run Code Online (Sandbox Code Playgroud)
我四处搜索,发现它在PTP模式下更新.但它说:
Windows could not find driver software for your device
Run Code Online (Sandbox Code Playgroud)
我在另一台计算机上尝试过相同的操作,但它运行得很好.
是因为我没有使用USB 2.0吗?
PS:试过这里提到的所有方法. Nexus 5 USB驱动程序
我正在使用Bitcoinj构建应用程序,我正在尝试在Nexus 5上运行它.当使用等级构建Bitcoinj - 编译'org.bitcoinj:bitcoinj-core:0.12' - 然后在手机上运行应用程序时,我收到这个错误......
"失败[INSTALL_FAILED_NO_MATCHING_ABIS]"
有谁知道这是为什么,或如何解决它?
谢谢,
担.
我有一台LG Nexus 5x智能手机,我想在我的Windows 10计算机上使用Android Studio中的设备调试.我打开手机上的dubugger选项,但Android Studio无法看到.从哪里可以下载USB驱动程序,这可以解决我的问题?
nexus-5 ×9
android ×8
google-nexus ×2
bitcoinj ×1
bluetooth ×1
eclipse ×1
eclipse-luna ×1
emulation ×1
flashlight ×1
java ×1
lg ×1
network-scan ×1