草庐IT

redmi-device

全部标签

android 蓝牙连接失败(isSocketAllowedBySecurityPolicy 开始 : device null)

我正在尝试用蓝牙连接两部手机(galaxynote1、galaxynote2),但套接字连接失败。这是我的LogCat:I/BluetoothService(24036):BEGINmConnectThreadD/BluetoothUtils(24036):isSocketAllowedBySecurityPolicystart:devicenullD/BluetoothService(24036):setState()2->1D/BluetoothService(24036):ConnectFailD/BluetoothService(24036):startV/BluetoothS

Android Studio 模拟器无法启动 "Waiting for target device to come online"

所以我目前正在学习如何开发Android应用程序。我正在制作我的第一个应用程序,我没有任何错误,但我的模拟器不会运行我的应用程序。它停留在“等待目标设备上线”。我对哪里出了问题感到困惑,因为它以前工作过。我完全重新安装了所有内容,但仍然无法正常工作。不确定该怎么做。 最佳答案 取消选中,然后从AndroidStudio“工具-Android”菜单中重新选中“启用ADB集成”,它将起作用。 关于AndroidStudio模拟器无法启动"Waitingfortargetdevicetocom

android - Expo 推送通知 - 错误 : Couldn’t get GCM token for device

我尝试在mt应用程序上实现ExpoNotification,非常有线,在我上一个expo应用程序中它运行良好但现在不行了,可能因为版本更新这是我尝试使用expo文档中的代码时显示的Error:Couldn'tgetGCMtokenfordevice这是pacage.json:我的package.json:{"name":"blabla","version":"0.1.0","private":true,"devDependencies":{"babel-plugin-transform-decorators-legacy":"^1.3.5","jest-expo":"~27.0.0",

android - 是安卓:excludeFromRecents broken for the first app that is launched on the device on Android L?

似乎当前从androidL中最近的应用程序列表中排除应用程序的方法已损坏。我们的应用程序使用的是android:excludeFromRecents并且运行良好。除非我们的应用是设备重启时第一个启动的应用。这是当我们的应用程序作为设备上的第一个应用程序退出时的样子:下面是我们首先启动相机(或任何其他应用程序),然后我们的应用程序并退出两者的情况:简单地说:如果带有android:excludeFromRecents的应用程序作为设备上的第一个应用程序启动,则指令android:excludeFromRecents不起作用。如果在android:excludeFromRecents-ap

android gradle项目刷新失败: The device is not ready

当我将我的项目移动到我的笔记本电脑并将其导入到文件/导入项目中时,AndroidStudio会提醒我projectrefreshfailedError:Thedeviceisnotready 最佳答案 在你的gradle文件中查看类似这样的行(这是我的):maven{url"D:/Android/sdk/extras/android/m2repository"}我的新笔记本电脑上没有带AndroidSDK的驱动器D:\。这就是我遇到错误的原因:Gradlesyncfailed:ThedeviceisnotreadyConsultID

安卓 : Your device isn't compatible with this version

目前我的应用程序已上传到Play商店,Androidkitkat(4.4)设备不兼容安装我的应用程序,我的应用程序最小目标API是16,我还附上了图片我应该为此做什么? 最佳答案 尝试删除.-声明应用程序使用的单个硬件或软件功能。声明的目的是告知任何外部实体您的应用程序所依赖的硬件和软件功能集。该元素提供了一个required属性,允许您指定您的应用程序是否需要并且不能在没有声明的功能的情况下运行,或者它是否更喜欢具有该功能但可以在没有它的情况下运行。由于功能支持可能因Android设备而异,因此该元素在让应用程序描述其使用的设备可

jenkins 报错fatal:could not read Username for ‘XXX‘:No such device or address

#原因:机器做迁移,或者断电,遇到突发情况#解决:一.排查HOME和USER环境变量可以在项目执行shell脚本的时候echo$HOME和USER也可以在构建记录位置点击compareenvironment对比两次构建的环境变量二.查看指定节点的git凭证查看家目录下cat.git*三.重启jenkinssalve节点(按此方法解决)四.在项目执行shell脚本的时候强行指定HOME和USER

android - 无效 key 异常 : Keystore operation failed on RSA decrypt on Android device

我正在尝试对AndroidKeyStore中的key执行RSA加密和解密。加密成功完成,但当我尝试解密时,它抛出一个InvalidKeyException:KeystoreoperationfailedonCipher.init()。这是我的key生成代码:KeyPairGeneratorkpGenerator=KeyPairGenerator.getInstance("RSA","AndroidKeyStore");AlgorithmParameterSpecspec=null;spec=newKeyGenParameterSpec.Builder(mAlias,KeyPropert

android - Firebase 的云功能 : Sending topic notification to Android device not working

我正在关注Udacity的这个教程,其中CloudFunctionsforFirebase用于更改添加数据的引用数据。我想使用类似的功能,但用于向订阅主题的用户发送推送通知。这是我正在使用的功能。constfunctions=require('firebase-functions');constadmin=require('firebase-admin');admin.initializeApp(functions.config().firebase);exports.sendNotification=functions.database.ref('/messages/{pushId}

android - 运行 adb : No Android device found. 时出错请连接设备并按照此处的说明启用 USB 调试:

我是React-Native新手,刚刚使用Expo在真实设备上运行了我的第一个helloworld应用程序。现在,我想在Android模拟器上运行第一个helloworld应用程序。我使用AndroidStudio中的AVDManager设置了一个AVD。(棉花糖)但是,每次都会出现以下错误。我找不到解决这个问题的方法。非常感谢任何线索。迈克mike@mike-Laptop:~/Desktop/react-native/AwesomeProject$react-nativerun-androidScanningfoldersforsymlinksin/home/mike/Desktop