Android应用开发环境搭建


原文链接: Android应用开发环境搭建

Google Java编程风格指南
移动应用开发必备工具盘点

云服务提供商

UCloud
##
Bmob
个推
极光推送

LeanCloud
[](https://www.firebase.com/)
##
Fir.im
IT性能监控神器
Testin云测
BugHD
##
短信验证码

代码库

code4app

优秀开源软件

云适配

root检测
rootbeer

AdAwayCN
AdAway
busybox
shadowsocks
networkScanner
NetworkMapper

Android Studio 1.5

https://dl.google.com/dl/android/studio/ide-zips/1.5.1.0/android-studio-ide-141.2456560-linux.zip

下载Android Studio 2.1 Preview 4

http://dl.google.com/dl/android/studio/ide-zips/2.1.0.2/android-studio-ide-143.2712822-linux.zip

echo "export IBUS_ENABLE_SYNC_MODE=1" >> ~/.profile # ibus

sudo add-apt-repository -y ppa:webupd8team/java
sudo apt-get install oracle-java7-installer
sudo apt-get install lib32z1 lib32ncurses5 lib32stdc++6 # unable to run mksdcard sdk tool

curl -C- -O -x localhost:8087 -k https://dl.google.com/dl/android/studio/ide-zips/2.1.0.2/android-studio-ide-143.2712822-linux.zip
##创建桌面快捷方式
vim Android-Studio.desktop

[Desktop Entry]
Name=Android Studio
Comment=Android Development Studio
Exec=/home/ubuntu/Android/android-studio/bin/studio.sh
Icon=/home/ubuntu/Android/android-studio/bin/studio.png
Type=Application
StartupNotify=true
Categories=Development;
MimeType=text/plain;

Server's certificate is not trusted

**File->Settings **. select Server Certificates -> Accept non-trusted Automatically

ADB

  1. echo 0x2a45 > ~/.android/adb_usb.ini
  2. sudo vim /etc/udev/rules.d/51-android.rules
    SUBSYSTEM=="usb", ATTR{idVendor}=="2a45", MODE="0666", GROUP="plugdev"
    sudo chmod a+rx /etc/udev/rules.d/51-android.rules
  3. sudo adduser plugdev
  4. sudo service udev restart
  5. adb kill-server
    adb devices

NDK

Android Studio中NDK开发

一、四大组件
Activity 在应用中所看的东西都在其中
Service 后台运行。即使退出程序,也可以继续运行
Broadcast Recevier 应用接收电话、短信等广播消息。也可以向外发送广播消息。
Content Provider 程序之间共享数据

`