草庐IT

ADB_SERVICES

全部标签

Android ADB Shell 不启用包

我要求pm(包管理器)启用某些包,但它没有启用并显示消息“newstate:disabled”shell@android:/$pmenablemy.app.comPackagemy.app.comnewstate:disabled奇怪...好像是个bug...SamsungGT-P3100withAndroid4.0.3知道如何解决吗? 最佳答案 您可能需要成为root才能使用命令pmdisable在系统应用程序上。 关于AndroidADBShell不启用包,我们在StackOverf

android - 为什么 Android Debug Bridge (adb) 必须频繁重启?

这种情况每天大约会发生六次:Android模拟器(例如CPU/API:IntelAtom(x86),目标:API级别15)可以正常工作一段时间,然后Eclipse在安装应用程序时显示以下错误[2013-07-0115:15:47-Myapp]Failedtoinstallmyapp.apkondevice'emulator-5554':Connectionrefused:connect[2013-07-0115:15:47-Myapp]java.net.ConnectException:Connectionrefused:connect[2013-07-0115:15:47-Myapp

Android Studio - 在项目 'assemble' 中找不到任务 ':google-play-services_lib'

当我单击Build->RebuildProject时,出现此错误。map上的一切都很好。我成功地同步了build.gradle并清理了项目,没有出现错误。我可以在我的设备上运行map。构建.gradlebuildscript{repositories{mavenCentral()}dependencies{classpath'com.android.tools.build:gradle:0.12.0'}}applyplugin:'android'repositories{mavenCentral()}dependencies{compile'com.android.support:su

Android:ADB 更新 Google Play 服务 'Failure'

正在尝试关注thisGoogle+Logintutorial.启动应用程序,我得到这个错误YouneedtoupdateGooglePlayServicestousethisapplication按更新不执行任何操作。忽略此对话框并按Login会使应用程序崩溃。使用Windows8中的终端更新我的模拟器上的Play服务,adbinstallcom.android.vending-20140218.apk........Failure[INSTALL_FAILED_DUPLICATE_PERMISSIONperm=com.google.android.gms.permission.ACT

安卓使用adb命令查看当前activity

使用adb命令查看最上层activity:方法一:在Terminal命令中输入:adbshelldumpsysactivityactivitiesACTIVITYMANAGERACTIVITIES(dumpsysactivityactivities)Display#0(activitiesfromtoptobottom):Stack#0:mFullscreen=truemBounds=nullTaskid#763mFullscreen=truemBounds=nullmMinWidth=-1mMinHeight=-1mLastNonFullscreenBounds=null*TaskRecor

android - 将多种产品 flavor 与 flavor 维度组合时,文件 google-services.json 丢失

我正在尝试配置一个Android项目,将多种产品flavor与flavor维度相结合。这是build.gradle的一个fragmentandroid{...flavorDimensions"vendor","type"productFlavors{development{dimension"vendor"}production{dimension"vendor"}free{dimension"type"}paid{dimension"type"}}...}我正在使用谷歌服务,我需要有google-services.json文件,我想为每个供应商准备一个不同的文件,一个用于开发另一个用

android - 无法将 google-play-services 正确安装到 Eclipse 中(试图让 map 正常工作)

我当前的工作空间设置如下所示:但是,人们告诉我要让map正常工作,我还需要在我的“AndroidDependencies”文件夹中有“google-play-services_lib.jar”,而做到这一点的方法是:“将GooglePlay服务添加到您的项目中Project->Properties->Android->Library,Add->google-play-services_lib”唯一的问题是它总是在初始绿色标记之后,在重新打开“项目->属性->Android->Library”...并且也没有“google-play-services_lib.jar”被添加到项目中的“A

android - 无法使用 Gradle 分发 'http://services.gradle.org/distributions/gradle-1.6-bin.zip' 执行构建

如果构建项目,AndroidStudio出现错误:AndroidStudio中的错误:Gradle:DerBefehl"C:\Program"istentwederfalschgeschriebenoderkonntenichtgefundenwerden.FAILURE:Buildfailedwithanexception.*Whatwentwrong:Executionfailedfortask':MyApplication:dexDebug'.>RunningC:\Users\Michael\AppData\Local\Android\android-studio\sdk\bui

android - 每个命令的 adb shell "operation not permitted"

我最近对我的Android手机进行了出厂重置。在重置之前,我能够通过adbinstall安装应用程序。手机没有root。恢复出厂设置后,我几乎对adbshell中的每个命令(包括不存在的命令)都收到“不允许操作”:$installinstall:permissiondenied$pushpush:permissiondenied$remountremount:permissiondenied$susu:permissiondenied$kmmsaldfmaldskfmlasdfkmmsaldfmaldskfmlasdf:permissiondenied$大部分PATH对我来说都是不可读

安卓 : Is it necessary to include Google Play services to use GCM?

我有一个大小为200kb的库android项目。现在我想在其中使用GCM。要使用GCM,我必须包括GooglePlay服务,这会使我的项目大小增加1MB,使其达到1.2MB,这有点糟糕。有什么解决办法吗?提前致谢! 最佳答案 从GooglePlay服务版本6.5开始,您可以有选择地将GooglePlay服务API编译到您的应用中。要仅包含GCM部分,请使用:com.google.android.gms:play-services-gcm:7.8.0 关于安卓:Isitnecessaryt