小编SjV*_*nyk的帖子

没有可用的受支持的身份验证方法(服务器发送:公钥)

我已经使用该命令创建了 ssh 密钥ssh keygen,并将公钥添加到了我的 bitbucket 帐户,然后我也将密钥添加到了 ssh 代理,但是当我尝试使用 sourceTree 从 bitbucket 克隆存储库时,我收到以下错误。

Error: FATAL ERROR: Disconnected: No supported authentication methods available (server sent: publickey)
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
Run Code Online (Sandbox Code Playgroud)

我知道这是重复的问题,但这些解决方案对我不起作用,所以请帮忙。

bitbucket ssh-keys atlassian-sourcetree

13
推荐指数
1
解决办法
2万
查看次数

无法读取未定义的 Angular 6 的属性“nativeElement”

我正在尝试为我的应用程序创建一个自定义 Spinner 组件,所以我创建了

spinner.component.ts

export class SpinnerComponent implements AfterViewInit {

    @ViewChild("spinner") spinner: ElementRef;

    constructor() { }

    ngAfterViewInit(): void {
        this.spinner.nativeElement.style.display = "none";
    }

    public show = (): void => { this.spinner.nativeElement.style.display = "block"; };

    public hide = (): void => { this.spinner.nativeElement.style.display = "none"; };

}
Run Code Online (Sandbox Code Playgroud)

spinner.component.ts

<img #spinner src="assets/images/dotSpinner.gif" class="loading"/>
Run Code Online (Sandbox Code Playgroud)

我试图在我的其他组件中控制这个微调器,比如

样本.component.ts

import { SpinnerComponent } from "../spinner/spinner.component";

export class SimpleComponent {

    private spinner: SpinnerComponent = new SpinnerComponent();

    constructor() {}

    actionHandler = (data: any): void => {
        this.spinner.show();
        this.clientActionService.subscribe( …
Run Code Online (Sandbox Code Playgroud)

typescript angular-directive angular

5
推荐指数
1
解决办法
6107
查看次数

如何在Ionic 3中使用cordova-plugin-android-permissions?

我在我的应用程序中使用了几个像摄像头和图像拾取器的cordova插件,它们在所有设备上工作得很好......但问题来自于从手机获取这些插件的权限.Android 6以下版本在安装时会询问这些权限,但Android 6及更高版本仅在用户第一次在应用程序内使用该插件时(即在运行时)请求这些权限.

我发现这个 Ionic本机插件可以在Android的所有版本中处理这些权限但完全没有得到如何使用它或在我的代码中使用它,所以如果有人有任何视频或了解它的任何信息,那么请在这里提到它.

谢谢,

native cordova ionic3

3
推荐指数
1
解决办法
1万
查看次数