2021-09-17

本文介绍了Android源码的查看网址以及如何配置和使用SSH连接远程服务器进行编译。同时,提供了Windows环境下解决ADB日志写入错误的方法,并列出了多个Android SDK的国内镜像地址,以加速更新和下载。此外,还讲解了Gradle插件管理、Git配置、SSH密钥生成等开发常用操作。
摘要由CSDN通过智能技术生成

http://androidxref.com/
http://aospxref.com/

android源码网址

sudo sshfs dev03@192.168.67.103:/home/dev03/Ryoma/F4L_Qssi /home/ts/Videos/1122
ssh dev03@192.168.67.103 -p 20003

./gradlew compileDebug --stacktrace -info --scan
查看具体的编译报错

windows cmd 环境 adb logcat findstr 有时候会出现 写入错误,需要设置一下语言编码 CHCP 65001 ,设置为UTF-8编码
命令行中,有个命令是chcp,这个命令是用来显示当前活动代码页编号的,
 ANSI的编码环境的代号是936
 utf-8编码的65001
执行:CHCP 65001就设置成utf-8编码的了

Android SDK AndroidStudio 国内可用的镜像/代理地址
http://www.androiddevtools.cn/ 一站式下载地址,齐全

Android SDK在线更新镜像服务器

1.中国科学院开源协会镜像站地址:

◦IPV4/IPV6: mirrors.opencas.cn 端口:80

◦IPV4/IPV6: mirrors.opencas.org 端口:80

◦IPV4/IPV6: mirrors.opencas.ac.cn 端口:80

2.上海GDG镜像服务器地址:

sdk.gdgshanghai.com 端口:8000

3.北京化工大学镜像服务器地址:

◦IPv4: ubuntu.buct.edu.cn/ 端口:80

◦IPv4: ubuntu.buct.cn/ 端口:80

◦IPv6: ubuntu.buct6.edu.cn/ 端口:80

4.大连东软信息学院镜像服务器地址:

mirrors.neusoft.edu.cn 端口:80

5.腾讯Bugly 镜像:

android-mirror.bugly.qq.com 端口:8080

腾讯镜像使用方法:
http://android-mirror.bugly.qq.com:8080/include/usage.html

mavenCentral() ----------https://repo1.maven.org/maven2/
jcenter() ---------------------https://jcenter.bintray.com/ui/native/virtualjcenter/ui/native/virtualjcenter/
mavenLocal()---------------从本地maven库中获取依赖项

配置gerrit
git config --global --list可以查看你的git全局配置信息

配置全局用户名和邮箱
git config --global user.name ‘malinshu’
git config --global user.email ‘malinshu@qq.com’
生成publickey
ssh-keygen -t rsa -C ‘malinshu@qq.com

gradle插件管理对应关系
https://developer.android.google.cn/studio/releases/gradle-plugin.html
官网下载
https://services.gradle.org/distributions/

mavenCentral()与jcenter()还有mavenLocal()有啥不同
https://blog.csdn.net/weixin_45959314/article/details/123127811

support与androidx
implementation ‘androidx.legacy:legacy-support-v4:1.0.0’
implementation ‘com.android.support:support-v4:28.0.0’

implementation ‘androidx.appcompat:appcompat:1.0.0’
implementation ‘com.android.support:appcompat-v7:28.0.0’

implementation ‘androidx.annotation:annotation:1.0.0’
implementation ‘com.android.support:support-annotations:28.0.0’

implementation ‘androidx.recyclerview:recyclerview:1.0.0’
implementation ‘com.android.support:recyclerview-v7:28.0.0’

implementation ‘androidx.constraintlayout:constraintlayout:1.1.3’
implementation ‘com.android.support.constraint:constraint-layout:2.0.4’

首先在终端窗口连接上远程服务器:
ssh root@192.168.8.8

复制远程服务器文件到本机当前目录命令:
scp -r root@192.168.8.8:/opt/docker ./

把本机的docker文件下的所有文件复制到目标地址:
scp -r docker root@192.168.8.8:/opt/

注:windows自带命令行工具windows PowerShell。

  • 2
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值