美文网首页
Android 开发常用设置

Android 开发常用设置

作者: s0me0ne | 来源:发表于2017-08-27 00:33 被阅读8次

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

相关文章

网友评论

      本文标题:Android 开发常用设置

      本文链接:https://www.haomeiwen.com/subject/axtvdxtx.html