跳至主要內容

Android 开发常用设置

JI,XIAOYONG...小于 1 分钟

Android Studio

  • 国内较快的仓库:

    maven {url'http://maven.aliyun.com/nexus/content/groups/public/open in new window'}

  • 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:NDKROOT:PATH

文章标题:《Android 开发常用设置》
本文作者: JI,XIAOYONG
发布时间: 2017/08/27 23:25:05 UTC+8
更新时间: 2023/12/30 16:40:18 UTC+8
written by human, not by AI
本文地址: https://jixiaoyong.github.io/blog/posts/1c56d6b9.html
版权声明: 本博客所有文章除特别声明外,均采用 CC BY-NC-SA 许可协议。转载请注明出处!
你认为这篇文章怎么样?
  • 0
  • 0
  • 0
  • 0
  • 0
  • 0
评论
  • 按正序
  • 按倒序
  • 按热度
Powered by Waline v2.15.8