在本文中,我们将详细介绍解决AndroidStudio在Ubuntu不能加载设备,提示“LoadingDevices...“的各个方面,并为您提供关于androidstudioubuntu安装的相关解
在本文中,我们将详细介绍解决Android Studio在Ubuntu 不能加载设备,提示“Loading Devices...“的各个方面,并为您提供关于android studio ubuntu安装的相关解答,同时,我们也将为您带来关于Android Studio 4.0 正式发布在Ubuntu 20.04中安装的方法、Android Studio 将物理设备识别为空? - Android Studio recognizes physical Device as Null?、android studio 真机调试时Waiting for device. USB device not found、Android Studio中的Gradle执行错误(Ubuntu)的有用知识。
本文目录一览:- 解决Android Studio在Ubuntu 不能加载设备,提示“Loading Devices...“(android studio ubuntu安装)
- Android Studio 4.0 正式发布在Ubuntu 20.04中安装的方法
- Android Studio 将物理设备识别为空? - Android Studio recognizes physical Device as Null?
- android studio 真机调试时Waiting for device. USB device not found
- Android Studio中的Gradle执行错误(Ubuntu)
解决Android Studio在Ubuntu 不能加载设备,提示“Loading Devices...“(android studio ubuntu安装)
问题描述:
在ubuntu上安装了AS之后,在01_Android/android-studio-ide-201.7199119-linux/android-studio/bin界面通过./studio.sh打开并配置as之后,无法在Flutter插件处列出已连接的android设备。
分析方法:
1.硬件支持相关配置
首先需要了解as在Ubuntu Linux适配的基本原则.那么需要正确进行两项设置:希望使用 adb 的每个用户都需要位于 plugdev 组中,并且需要为系统添加涵盖设备的 udev 规则。
- plugdev 组:如果您看到一条错误消息,指出您不在 plugdev 组中,您需要将自己添加到 plugdev 组中:
sudo usermod -aG plugdev $LOGNAME
请注意,组只会在您登录时更新,因此您需要退出后重新登录,此更改才能生效。当您重新登录后,可以使用 id 检查自己现在是否已在 plugdev 组中。
在该部分我们也可以通过adb devices来检查是否可以查找是否可以列出当前已连接的android设备。如果不可以则需要进行配置。这里就比较简单了,一个简单例子:
- 创建相关规则文件:/etc/udev/rules.d/70-android.rules
- 执行“lsusb”命令获取需要配置的设备信息,这里如:Bus 004 Device 011: ID 18d1:4ee7 Google Inc.
- 配置70-android.rules相关条目,如:SUBSYstem=="usb", ATTRS{idvendor}=="18d1", ATTRS{idProduct}=="4ee7",MODE="0666"
- udev 规则:android-sdk-platform-tools-common 软件包中包含一组适用于 Android 设备并由社区维护的默认 udev 规则。请使用以下命令添加这些规则:
sudo apt-get install android-sdk-platform-tools-common
2.以管理员身份启动android studio
sudo ./studio.sh
3.as加载完成后,即可看到熟悉的界面,如下:
Android Studio 4.0 正式发布在Ubuntu 20.04中安装的方法
Android Studio 4.0 已经发布了。以下是在Ubuntu 18.04,Ubuntu 19.10,Ubuntu 20.04中安装它的方法。
Android Studio 4.0具有新的Motion 编辑器,改进的布局检查器,对C++的Clangd支持,智能编辑器功能,CPU Profiler的增强功能,D8和R8中使用的Java 8语言库以及更多其他更改。有关更多信息,请参见发行说明。
如何在Ubuntu中安装Android Studio 4.0:
在Ubuntu 18.04及更高版本中的Ubuntu软件使用Snap软件包安装,不喜欢Snap应用程序?您也可以通过Ubuntu Make轻松安装Android Studio 4.0。
1.)安装最新的Ubuntu Make:
打开终端(Ctrl + Alt + T)并运行命令以添加PPA,其中包含适用于Ubuntu 16.04,Ubuntu 18.04,Ubuntu 19.10和Ubuntu 20.04的最新Ubuntu Make软件包。
linuxmi@linuxmi:~/www.linuxmi.com$ sudo add-apt-repository ppa:lyzardking/ubuntu-make
然后通过命令安装或升级Ubuntu Make:
linuxmi@linuxmi:~/www.linuxmi.com$ sudo apt install ubuntu-make
2.)通过以下命令安装Android Studio:
linuxmi@linuxmi:~/www.linuxmi.com$ umake android --accept-license
默认情况下,它会自动从谷歌下载软件包和依赖项,并安装到您的系统上。
3.)安装完成后,从“显示应用程序”菜单启动IDE。如果看不到该图标,请重新启动计算机,或者运行sh ~/.local/share/umake/android/android-studio/bin/studio.sh
命令从终端启动它。
卸载:
您可以通过运行以下命令删除Ubuntu Make PPA:
sudo add-apt-repository --remove ppa:lyzardking/ubuntu-make
并通过命令删除Android Studio:
umake android --remove
总结
到此这篇关于Android Studio 4.0 正式发布在Ubuntu 20.04中安装的方法的文章就介绍到这了,更多相关Android Studio 4.0 发布在Ubuntu 20.04安装内容请搜索以前的文章或继续浏览下面的相关文章希望大家以后多多支持!
- Android Studio 4.0新特性及升级异常问题的解决方案
- AndroidStudio3.6.1打包jar及AndroidStudio4.0打包jar的一系列问题及用法
- ubuntu19系统及以下版本安装android studio的教程
- ubuntu上在androidstudio中启动emulator闪退的解决方法
- Ubuntu16.04 LTS 下安装 Android Studio 2.2.2 的详细步骤
Android Studio 将物理设备识别为空? - Android Studio recognizes physical Device as Null?
问题:
I''ve been developing an Android Application for Android
(SDK min version 14) and I have testing it normally with tablets such as Samsung Galaxy 2 and Nexus 7
. 我一直在开发 Android Application for Android
的 Android Application for Android
(SDK min 版本 14),我通常使用 Samsung Galaxy 2 and Nexus 7
等平板电脑进行测试。 However when I tried to run the application (by clicking run in AndroidStudio
), AS does not recognise the tablet information, which is shown in the picture below. 但是,当我尝试运行应用程序时(通过单击 AndroidStudio
运行),AS 无法识别平板电脑信息,如下图所示。
The interesting thing is that as shown in the picture above, AS is also detecting the device sdk as API 1
when it''s Android version is 4.2.2
The tablet is already set to accept " USB debugging
" in the developer options, I''have tried rebooting the tablet, and restarting AS, but still I get the same problem(everything is fine with nexus 7 and Samsung Galaxy 2
). 有趣的是,如上图所示,当 Android 版本为 4.2.2
时,AS 还将设备 sdk 检测为 API 1
平板电脑已经设置为在开发人员选项中接受 “ USB debugging
”,我试过了重新启动平板电脑,并重新启动 AS,但我仍然遇到同样的问题( nexus 7 and Samsung Galaxy 2
一切都很好)。
The tablet/device I''m working on is a "VeryKool" T742 我正在使用的平板电脑 / 设备是 “VeryKool” T742
Environment information:
OS: ubuntu
AndroidStudio version: 0.8.6
Tablet Android version:4.2.2
Tablet Kernel version: 3.4.5
App min SDK: 14
解决方案:
参考: https://stackoom.com/en/question/1jTO7android studio 真机调试时Waiting for device. USB device not found
google usb server已经安装,执行adb devices显示列表为空
求解
Android Studio中的Gradle执行错误(Ubuntu)
然后我创建了一个空项目,现在我在窗口底部附近显示错误.我想这是一个Gradle错误(对AS来说很新)
Error:Execution Failed for task ':app:mergeDebugResources'. > /root/AndroidStudioProjects/HockeyGame/app/build/exploded-aar/com.android.support/appcompat-v7/19.1.0/res/drawable-xxhdpi/abc_ic_voice_search.png: Error: Cannot run program "/opt/android-studio/sdk/build-tools/android-4.4.2/aapt": error=2,No such file or directory
我想也许这是一个文件权限问题(因为aapt确实存在),所以我将权限设置为775递归.我也开始使用sudo(sudo sh studio.sh).
有任何想法吗?我在Android中部分尝试AS,因为我在使用杂乱的Windows安装(以及它的乐趣)下运行时遇到了问题,所以这是令人失望的.
编辑:事实证明,64位Ubuntu不适合运行32位可执行文件.
解决方法
sudo apt-get install lib32stdc 6
sudo apt-get install lib32z1
参考:https://code.google.com/p/android/issues/detail?id=67155
关于解决Android Studio在Ubuntu 不能加载设备,提示“Loading Devices...“和android studio ubuntu安装的介绍现已完结,谢谢您的耐心阅读,如果想了解更多关于Android Studio 4.0 正式发布在Ubuntu 20.04中安装的方法、Android Studio 将物理设备识别为空? - Android Studio recognizes physical Device as Null?、android studio 真机调试时Waiting for device. USB device not found、Android Studio中的Gradle执行错误(Ubuntu)的相关知识,请在本站寻找。
本文标签: