草庐IT

run-configuration

全部标签

android - 无法运行应用程序 - "The target device does not support the ' run-as'命令”

第一次在Macbook上运行AndroidStudio时出现此错误。该程序无法在我的设备上启动,我只是收到一条崩溃消息。在AndroidStudio上,我得到“目标设备不支持‘run-as’命令”,当我将它插入谷歌时,我没有得到任何结果。我得到一个“了解更多”部分,该部分指向“关于InstantRun”标题下的此链接:https://developer.android.com/studio/run/index.html?utm_medium=android-studio#instant-run.如有任何建议,我们将不胜感激。 最佳答案

android - 关于 .git/HEAD : error: manifest missing or unreadable -- please run init 的 repo 协议(protocol)

我正在使用repo(在ubuntu中)下载android4.4源代码。上次我通过组合键Ctrl+Z终止了repo进程,这次当我使用命令:“repoinit”和“reposync”启动它时,我得到了以下错误:error:insync:[Errno2]Nosuchfileordirectory:u'/home/ubuntu/workspace/packages/apps/VoiceDialer/.git/HEAD'error:manifestmissingorunreadable--pleaseruninit我试过“runinit”,没有显示任何错误。但是运行“repoinit”后问题仍然

android - "This app won' t run unless you update Google Play Services"when app is installed on real device

当我在运行旧版本(例如4.4.4)的Android设备上安装我的应用程序时,我收到此消息。我能看到的与此消息相关的所有其他帖子似乎都是在模拟器上运行时与GoogleMapsAPI相关的。我使用的是GooglePlay服务7.0.0。 最佳答案 Thisandroiddeveloper'sblogentry描述了GooglePlay服务7.0版中的新功能。如果您不需要这些,您可以使用6.5版,它已经使用了新的GoogleApiClient类并提供了精细的依赖模块(最好描述here和here。在我的一个项目中我使用了这个compile'

安卓工作室 2.2.3 : Error Running App: Default Activity not found

我受困于我的AndroidManifest.xml文件:android:theme="@style/AppTheme">我做错了什么? 最佳答案 你做错了。用您的代码替换此代码。 关于安卓工作室2.2.3:ErrorRunningApp:DefaultActivitynotfound,我们在StackOverflow上找到一个类似的问题: https://stackoverflow.com/questions/41075213/

android - 权限拒绝 : runUninstall from pm command asks to run as user -1 but is calling from user 0;

我刚刚将我的Android设备(SamsungJ7Pro)升级到9.0(Pie),当我想从AndroidStudio运行任何应用程序时,我遇到了这个问题:PermissionDenial:runUninstallfrompmcommandaskstorunasuser-1butiscallingfromuser0;thisrequiresandroid.permission.INTERACT_ACROSS_USERS_FULL.我已经尝试添加INTERACT_ACROSS_USERS_FULL到我的AndroidManifest.xml但得到同样的错误。有什么帮助吗?

android - Telegram Messenger Running 项目仍然遇到 : Unfortunately, Telegram 已停止

我尝试使用AndroidStudio从TelegramMessengerGitHub下载源代码,我以我的LenovoMobile(已连接)为目标运行该项目在手机上显示错误:不幸的是,Telegram已停止介意的建议。非常感谢和最诚挚的问候。CatLog主要是这样的:09-2811:50:37.26315071-15071/org.telegram.messengerE/AndroidRuntime﹕FATALEXCEPTION:mainProcess:org.telegram.messenger,PID:15071java.lang.RuntimeException:Unabletor

java - 错误 : Failed to run "javac -version", 确保您安装了 JDK

Error:Failedtorun"javac-version",makesurethatyouhaveaJDKinstalled.Youcangetitfrom:http://www.oracle.com/technetwork/java/javase/downloads.YourJAVA_HOMEisinvalid:C:\ProgramFiles\Java\jdk1.8.0_152;[ERROR]Anerroroccurredwhilerunningcordovarunandroid(exitcode1)我的JAVA_HOME:C:\ProgramFiles\Java\jdk1.8

android - 如何在 android 开发者工具 (ADT) 中打开 Configure Launcher Icon 窗口?

我安装了ADT并且已经创建了我的项目。但是现在我想在ConfigureLauncherIcon窗口中更改应用程序图标的设置。但是我找不到打开它的位置。有人知道吗?如果你不知道它长什么样:请参阅此处的第14步http://setup-steps.blogspot.ca/2013/03/android-developer-tools-adt-bundle.html谢谢。 最佳答案 如果您右键单击您的项目->选择“新建”->选择“其他”->打开“Android”子树->选择“Android图标集”,您将找到您要使用的向导寻找。

android - phonegap 运行 android 执行错误 "adb devices": ** daemon still not running node_modules\q\q. js:126 throw e;

C:\NodeJS\PhoneGapApp1>phonegaprunandroid--emulator[phonegap]detectingAndroidSDKenvironment...[phonegap]usingthelocalenvironment[phonegap]compilingAndroid...[phonegap]successfullycompiledAndroidapp[phonegap]installingappontoemulator[error]Anerroroccurredwhileemulating/deployingtheandroidproject.

安卓工作室 2.1.1 : "no usb devices or running emulators detected"

我的AndroidStudio突然停止检测我的所有设备,它们都无法正常工作。它从一次执行到另一次执行。我更改了几行代码(也许1分钟?),点击运行(即时运行),然后我错过了所有设备。我使用的是Mac和以下设备:Nexus5x、Galaxys6和OneplusOne。会发生什么?我在这里检查了以前的问题并尝试了所有这些:运行配置:无论我选择USB设备还是显示窗口,它都不起作用。工具>Android>启用ADB集成:没有帮助命令行adbdevices也未检测到任何内容。我已撤销并再次授予USB授权。还是不行。我已经尝试过我拥有的其他应用程序,但都没有用。重启手机重启androidstudio