小编Ali*_*eOS的帖子

Android Wear上的Google Fit API问题

我正在尝试将Google Fit API实现到我的Android可穿戴应用程序中.我已经按照GoogleFitAPI在线步骤注册了OAuth ID.

尝试连接时,我收到无效的帐户错误.

我是否需要在开发人员api控制台中启用免费试用,或者是否还有其他问题导致此问题?

mClient = new GoogleApiClient.Builder(this)
            .addApi(Fitness.API)
            .addScope(Fitness.SCOPE_ACTIVITY_READ)
            .addConnectionCallbacks(this)
            .addOnConnectionFailedListener(this)
            .build();
Run Code Online (Sandbox Code Playgroud)

android google-play-services wear-os

4
推荐指数
1
解决办法
1789
查看次数

标签 统计

android ×1

google-play-services ×1

wear-os ×1