【问题标题】:android build error on codenameone with braintree payments带有braintree付款的代号上的android构建错误
【发布时间】:2017-11-07 13:24:47
【问题描述】:

当我将 Braintree 扩展添加到我的 codenameone 项目并将 android build 发送到 codenameone 时,我收到了这些错误日志的构建错误:

FAILURE: Build failed with an exception.

What went wrong:
A problem occurred configuring root project 'NLApplication'.
Could not resolve all dependencies for configuration ':_debugCompile'.
 Could not find com.android.support:cardview-v7:26.0.0.
 Searched in the following locations:
     https://jcenter.bintray.com/com/android/support/cardview-v7/26.0.0/cardview-v7-26.0.0.pom
     https://jcenter.bintray.com/com/android/support/cardview-v7/26.0.0/cardview-v7-26.0.0.jar
     file:/tmp/build2388050053529696565xxx/NLApplication/libs/cardview-v7-26.0.0.jar
     file:/tmp/build2388050053529696565xxx/NLApplication/libs/cardview-v7.jar
     file:/home/ec2-user/android-sdk/extras/android/m2repository/com/android/support/cardview-v7/26.0.0/cardview-v7-26.0.0.pom
     file:/home/ec2-user/android-sdk/extras/android/m2repository/com/android/support/cardview-v7/26.0.0/cardview-v7-26.0.0.jar
     file:/home/ec2-user/android-sdk/extras/google/m2repository/com/android/support/cardview-v7/26.0.0/cardview-v7-26.0.0.pom
     file:/home/ec2-user/android-sdk/extras/google/m2repository/com/android/support/cardview-v7/26.0.0/cardview-v7-26.0.0.jar
 Required by:
     :NLApplication:unspecified > com.braintreepayments.api:drop-in:3.1.0
Could not find com.android.support:design:26.0.0.
 Searched in the following locations:
     https://jcenter.bintray.com/com/android/support/design/26.0.0/design-26.0.0.pom
     https://jcenter.bintray.com/com/android/support/design/26.0.0/design-26.0.0.jar
     file:/tmp/build2388050053529696565xxx/NLApplication/libs/design-26.0.0.jar
     file:/tmp/build2388050053529696565xxx/NLApplication/libs/design.jar
     file:/home/ec2-user/android-sdk/extras/android/m2repository/com/android/support/design/26.0.0/design-26.0.0.pom
     file:/home/ec2-user/android-sdk/extras/android/m2repository/com/android/support/design/26.0.0/design-26.0.0.jar
     file:/home/ec2-user/android-sdk/extras/google/m2repository/com/android/support/design/26.0.0/design-26.0.0.pom
     file:/home/ec2-user/android-sdk/extras/google/m2repository/com/android/support/design/26.0.0/design-26.0.0.jar
 Required by:
     :NLApplication:unspecified > com.braintreepayments.api:drop-in:3.1.0 > com.braintreepayments:card-form:3.1.0

【问题讨论】:

  • 初步想法...this repo 可能与您的努力有关。您可能还想引用 Codename One 联合创始人的 this answer

标签: codenameone braintree


【解决方案1】:

Braintree 似乎推出了一个 3.1 更新,其中一个奇怪的新依赖项失败了。我已将 gradle 限制为使用 3.0,并将推出更新的 cn1lib。这应该会在今天晚些时候在您的扩展管理器中显示为更新。但是,如果您已经安装了 cn1lib,则需要先删除构建提示 android.gradleDep,然后刷新 cn1libs。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2017-11-18
    • 2015-09-24
    • 2017-08-17
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2019-03-15
    • 2011-08-23
    相关资源
    最近更新 更多