最近由于给电脑升级,重新搭建了开发环境,但是Android studio 在分享项目到github上时,出现如下异常:
14:31 Can't finish GitHub sharing process
Successfully created project 'todo_mvvm' on GitHub, but initial push failed:
Could not read from remote repository.
搜索了好多文章,最后在stack overflow找到解决方法 ,即将SSH executable Built-in 变为Native,重新push,完美解决。
总结一下出现这类错误的解决方法:
1、保证Android Studio中git.exe 路径配置正确
2、请保证Android Studio中正确配置SSH连接github
3、如图上的解决方法一样,将SSH executable 设置为Native