Couldn‘t refresh skeletons for remote interpreter:Can‘t get remote credentials for deployment server

问题如图,当节假日回来准备继续工作大干一场的时候,使用pycharm运行之前在服务器上的代码时出现了上述的报错,最后的解决方式如下:
1,首先查看一下本地pycharm对应服务器上的container容器是否开启,进入服务器后,linux下查看容器状态的命令为:

docker ps

使用上述命令后没有显示你的容器则表明你的容器没有启动,再使用以下命令查看你的容器名称和状态:

docker ps -a

查看到本地pycharm对应的容器后,使用以下命令开启:

docker exec -it CONTAINER ID bin/bash

成功开启容器后再查看一下容器中的ssh服务是否开启,命令为:

service ssh status

如果显示已经开启则回到pycharm界面重新连接即可,如果没有开启则需要手动开启,命令如下:

service ssh start

此时结果为:

 * Starting OpenBSD Secure Shell server sshd                             [ OK ]

则表明ssh服务成功开启,再运行 service ssh status 命令结果应为:

 * sshd is running

当你本地的pycharm对应服务器上的容器以及容器中的ssh服务开启时,应该就可以连接成功了。

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
It seems like you are encountering a dependency resolution issue in your Android project. The error message "Could not resolve all files for configuration ':app:androidApis'" indicates that some required files could not be found or resolved. Here are some steps you can try to resolve this issue: 1. Check your internet connection: Make sure you have a stable internet connection as the build process requires downloading dependencies from remote repositories. 2. Refresh dependencies: Try refreshing the dependencies by running the following command in your project directory: ``` ./gradlew clean build --refresh-dependencies ``` This will force Gradle to download the latest dependencies for your project. 3. Check repository URLs: Ensure that the repository URLs specified in your project's `build.gradle` file are correct and accessible. You can verify this by opening the URLs in a web browser. 4. Update Gradle and Android Studio: Make sure you are using the latest version of Gradle that is compatible with your Android Studio version. Update Gradle by modifying the `distributionUrl` in the `gradle-wrapper.properties` file located in the `gradle/wrapper` directory of your project. For example, if you are using Gradle 6.7, modify the `distributionUrl` to: ``` distributionUrl=https\://services.gradle.org/distributions/gradle-6.7-all.zip ``` Then sync your project with Gradle files. 5. Invalidate caches and restart: Go to "File" -> "Invalidate Caches / Restart" in Android Studio to clear any cached files that might be causing conflicts. If none of the above steps resolve the issue, please provide more details about your project setup, such as the version of Android Studio, Gradle, and any relevant dependencies you are using.

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值