【问题标题】:Android Teleport Library. Incompatible Class Change ErrorAndroid 传送库。不兼容的类更改错误
【发布时间】:2016-09-10 19:06:21
【问题描述】:

我正在尝试彻底检查我使用标准数据层的 Android Wear 应用程序以使用 Teleport 库。

我收到以下错误。

java.lang.IncompatibleClassChangeError: The method 'void com.google.android.gms.common.api.GoogleApiClient.connect()' was expected to be of type interface but instead was found to be of type virtual (declaration of 'com.mariux.teleport.lib.TeleportClient' appears in /data/app/it.cnr.isti.doremi.sleeplogger-2/base.apk) at com.mariux.teleport.lib.TeleportClient.connect(TeleportClient.java:68)

我该如何解决这个问题?

【问题讨论】:

    标签: java android wear-os android-wear-data-api


    【解决方案1】:

    请尝试通过在您的模块和穿戴模块中的build.gradle 文件中添加依赖项来设置您的传送库:

    compile 'Teleport:teleportlib:0.1.4'
    

    详细信息请查看GitHub中的Teleport Library SetupTeleport - Data Sync & Messaging Library for Android Wear

    【讨论】:

      猜你喜欢
      • 2012-12-17
      • 1970-01-01
      • 2013-06-12
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2015-06-22
      • 1970-01-01
      相关资源
      最近更新 更多