简体   繁体   English

Android Studio 中的 SDK 管理器问题

[英]SDK manager issue in Android studio

I want to edit ADB check box,but there is not ADB check box in " SDK manager > Build,Execution,Deployment > Debugger ".我想编辑ADB复选框,但“ SDK manager > Build,Execution,Deployment > Debugger ”中没有 ADB 复选框。 Why is it?为什么? and how does it appear?它是如何出现的? Here u can understand better by viewing image below.在这里你可以通过查看下面的图片更好地理解。

According to my understanding, you want to install ADB.根据我的理解,你要安装ADB。

 Tools>SDK Manager>Plugins.

Input adb , then install it(My Android Studio version is 3.5).输入 adb ,然后安装它(我的 Android Studio 版本是 3.5)。

According to above comment "Installation failed due to :null" this is my suggestion to do.根据上面的评论"Installation failed due to :null"这是我的建议。

  • Open Run/Debug Configuration dialog打开运行/调试配置对话框

  • Edit Your app > General > Installation Options > Install Flags .编辑您的应用程序 > 常规 > 安装选项 > 安装标志

  • add install flags -r -t as [ -r means "replace existing application" & -t means "allow test packages"].添加安装标志-r -t作为 [ -r表示“替换现有应用程序”& -t表示“允许测试包”]。

This flags means adb install -r -t apkpath .这个标志意味着adb install -r -t apkpath

在此处输入图片说明

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM