首页 技术 正文
技术 2022年11月10日
0 收藏 918 点赞 5,008 浏览 1307 个字

一、概述

我最近在写一个android的项目。
软件:android studio、Android studio VCS integration(插件)
Android studio VCS integration插件:使用此插件结合github进行代码版本管理
近期出现的问题:
19:29:47.581: [DailyZHIHU] git -c core.quotepath=false push –progress –porcelain origin refs/heads/master:master
java.io.IOException: Authentication failed:
at org.jetbrains.git4idea.ssh.SSHMain.authenticate(SSHMain.java:298)
at org.jetbrains.git4idea.ssh.SSHMain.start(SSHMain.java:172)
at org.jetbrains.git4idea.ssh.SSHMain.main(SSHMain.java:137)
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
能够发现,在本地是被提交了的,但是在github上没有提交成功。结果想在本地check changes/commit的时候,却是no changes的。
截图如下:
github提交失败并报错java.io.IOException: Authentication failed:

二、解决办法

1、首先,确保各项设置全部正确(github连接成功、git.exe连接成功)
github提交失败并报错java.io.IOException: Authentication failed:

github提交失败并报错java.io.IOException: Authentication failed:

2、其次,将SSH executable:Built-in/Native选择成为Native
github提交失败并报错java.io.IOException: Authentication failed:

关于SSH executable:Built-in/Native的解释:
Specify the version of SSH to be used with Git.

  • Native means that the native SSH will be used.
  • Built-in means that the implementation provided by Android Studio will be used.

The native implementation might cause hangups on some platforms. In native case, you also might need to configure ssh-askpass for your platform to receive GUI prompts for passwords.

三、参考

https://bitbucket.org/dmitry_cherkas/jetbrains-bitbucket-connector/issues/20/clone-failed-could-not-read-from-remote
http://www.weixingon.com/s/android+studio+vcs
http://stackoverflow.com/questions/17211697/android-studio-vcs-integration

相关推荐
python开发_常用的python模块及安装方法
adodb:我们领导推荐的数据库连接组件bsddb3:BerkeleyDB的连接组件Cheetah-1.0:我比较喜欢这个版本的cheeta…
日期:2022-11-24 点赞:878 阅读:9,492
Educational Codeforces Round 11 C. Hard Process 二分
C. Hard Process题目连接:http://www.codeforces.com/contest/660/problem/CDes…
日期:2022-11-24 点赞:807 阅读:5,907
下载Ubuntn 17.04 内核源代码
zengkefu@server1:/usr/src$ uname -aLinux server1 4.10.0-19-generic #21…
日期:2022-11-24 点赞:569 阅读:6,740
可用Active Desktop Calendar V7.86 注册码序列号
可用Active Desktop Calendar V7.86 注册码序列号Name: www.greendown.cn Code: &nb…
日期:2022-11-24 点赞:733 阅读:6,493
Android调用系统相机、自定义相机、处理大图片
Android调用系统相机和自定义相机实例本博文主要是介绍了android上使用相机进行拍照并显示的两种方式,并且由于涉及到要把拍到的照片显…
日期:2022-11-24 点赞:512 阅读:8,132
Struts的使用
一、Struts2的获取  Struts的官方网站为:http://struts.apache.org/  下载完Struts2的jar包,…
日期:2022-11-24 点赞:671 阅读:5,294