2017-08-13 20 views
0

我尝试使用IndoorAtlas Android SDK示例。我遵循this指南。transformClassesWithDexForDebug使用IndoorAtlas Library

但是当我尝试运行它,我得到这个错误:

Error:Uncaught translation error: com.android.dx.cf.code.SimException: local variable type mismatch: attempt to set or access a value of type java.lang.Object[] using a local variable of type com.indooratlas.android.sdk.IAGeofenceRequest. This is symptomatic of .class transformation tools that ignore local variable information.

Error:1 error; aborting

Error:Execution failed for task ':app:transformClassesWithDexForDebug'. com.android.build.api.transform.TransformException: java.lang.RuntimeException: java.lang.RuntimeException: Unable to pre-dex '/Users/xxx/AndroidStudioProjects/IndoorLocalization/app/libs/indooratlas-android-sdk-2.5.1.jar' to '/Users/xxx/AndroidStudioProjects/IndoorLocalization/app/build/intermediates/transforms/dex/debug/folders/1000/10/indooratlas-android-sdk-2.5.1_dbe918a8d06cf55c975257e4802cd6d4f4f48ea4'

我怎样才能解决这个问题呢?

+0

你可以添加任何细节,如使用的代码,[我如何问一个好问题?](http://stackoverflow.com/help/how-to-ask),[如何创建一个最小,完整和可验证示例](http://stackoverflow.com/help/mcve)向社区显示您尝试过的内容。 –

回答

1

IndoorAtlas Android SDK 2.5.1有一个错误,其中包含proguard opimizations。使用修正了这个错误的更新的2.5.2版本。版本2.5.2可以通过指定

dependencies { 
    ... 
    compile 'com.indooratlas.android:indooratlas-android-sdk:2.5.2' 
    ... 
} 

在您的应用程序build.gradle文件中。

+0

好吧,它的作品,谢谢! – Segamoto

相关问题