日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 运维知识 > Ubuntu >内容正文

Ubuntu

Ubuntu 16.04 搭建Android开发环境

發布時間:2023/12/10 Ubuntu 39 豆豆
生活随笔 收集整理的這篇文章主要介紹了 Ubuntu 16.04 搭建Android开发环境 小編覺得挺不錯的,現在分享給大家,幫大家做個參考.

1、Installing Java

sudo add-apt-repository ppa:webupd8team/java sudo apt-get update sudo apt-get install oracle-java8-installer

After that

? sudo apt-get install oracle-java8-set-default

2、Installing Android Studio

? ?(1) Download Android Studio from here?or here,use All Android Studio Packages

? (2)?Extract the archive file into an appropriate location for your applications, eg: /opt. Use the filename of your downloaded archive, in my example android-studio-ide-143.2739321-linux.zip

  sudo unzip android-studio-ide-141.2178183-linux.zip -d /opt

? (3)?To launch Android Studio, navigate to the /opt/android-studio/bin directory in a terminal and execute ./studio.sh. Or use a desktop file, see below.

You may want to add /opt/android-studio/bin to your PATH environmental variable so that you can start Android Studio from any directory.

3、Create a desktop file?

? gedit ~/.local/share/applications/android-studio.desktop

and add the lines below

  [Desktop Entry]
  Version=1.0
  Type=Application
  Name=Android Studio
  Exec="/opt/android-studio/bin/studio.sh" %f
  Icon=/opt/android-studio/bin/studio.png
  Categories=Development;IDE;
  Terminal=false
  StartupNotify=true
  StartupWMClass=android-studio

4、Installing Android SDK

? use Android SDK manager or download from here

5、Add adb PATH

? (1)?sudo gedit ~/.bashrc

  add this to the file

  # Android SDK
  export ANDROID_SDK_HOME=<your sdk path>
  PATH=$PATH:$ANDROID_SDK_HOME/tools
  PATH=$PATH:$ANDROID_SDK_HOME/platform-tools

? ? ? ?and then

  source ~/.bashrc?  

? (2) cd /usr/bin

  sudo ln -s <your adb path>

? (3) adb devices

  if you get like this:  

  List of devices attached
  0123456789ABCDEF no permissions

  then you should just try this:

  sudo adb kill-server

  and then?

  sudo adb start-server

  if you still get like this:

  List of devices attached
  0123456789ABCDEF unauthorized

  maybe you should open USB debug on your phone

?

參考資料:
1、http://androiddevtools.cn/

2、http://askubuntu.com/questions/634082/how-to-install-android-studio-on-ubuntu

3、http://stackoverflow.com/questions/9210152/set-up-device-for-development-no-permissions

4、Ubuntu 14.04 安裝genymotion

轉載于:https://www.cnblogs.com/droi/p/5399975.html

總結

以上是生活随笔為你收集整理的Ubuntu 16.04 搭建Android开发环境的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網站內容還不錯,歡迎將生活随笔推薦給好友。