小编mya*_*mal的帖子

我在android studio上遇到了奇怪的错误

请任何人帮助我.这是错误:错误:没有这样的属性:类的nexusUsername:org.gradle.api.publication.maven.internal.ant.DefaultGroovyMavenDeployer

堆栈跟踪

Information:Gradle tasks [:app:compileDebugJava]
Information:FAILURE: Build failed with an exception.
Information:* What went wrong:
Information:A problem occurred configuring project ':app'.
Information:> A problem occurred configuring project':libraries:HoloColorPicker-    master'.
Information:   > No such property: nexusUsername for class:        org.gradle.api.publication.maven.internal.ant.DefaultGroovyMavenDeployer
       Information:* Try:
          Information:Run with --stacktrace option to get the stack trace. Run with --info                       or --debug option to get more log output.
Information:0 errors
Run Code Online (Sandbox Code Playgroud)

settings.gradle

include ':app'
include ':libraries:HoloColorPicker-master'
Run Code Online (Sandbox Code Playgroud)

的build.gradle

apply plugin: 'android'

android {
    compileSdkVersion 19
    buildToolsVersion '19.0.3'

    defaultConfig {
        minSdkVersion 8 …
Run Code Online (Sandbox Code Playgroud)

android android-studio

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

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
查看次数