Android 开发常用设置

Android Studio

  • 国内较快的仓库:

    maven {url'http://maven.aliyun.com/nexus/content/groups/public/'}

  • RecyclerView 添加依赖 注意 RecyclerView 的版本号要和当前工程中其他 android.support 包版本保持一致,否则虽然导入了对应的包,但是仍然无法正常使用。

    compile 'com.android.support:recyclerview-v7:26+'

  • 设置: 自动添加依赖:insert imports on paste: None 自动删除无用依赖:Optimize imports on the fly

Linux

  • 设置 ndk 环境变量 /etc/profile

    #set ndk env NDKROOT=/home/jixiaoyong/AndroidDev/Sdk/ndk-bundle export PATH=$NDKROOT:$PATH

有想法?欢迎通过邮件讨论。

目录