库的'sqlite-native-driver.jar'包含不在设备上运行的本机库

时间:2015-07-23 11:01:02

标签: java android eclipse sqlite

我正在尝试使用较新的插件和API运行旧应用,并且我会遇到以下错误。

[2015-07-23 16:13:54 - DemoPia] Dx 
trouble writing output: already prepared
[2015-07-23 16:13:58 - DemoPia] The library 'sqlite-native-driver.jar' contains native libraries that will not run on the device.
[2015-07-23 16:13:58 - DemoPia] Additionally some of those libraries will interfer with the installation of the application because of their location in lib/
[2015-07-23 16:13:58 - DemoPia] lib/ is reserved for NDK libraries.
[2015-07-23 16:13:58 - DemoPia] The following libraries were found:
[2015-07-23 16:13:58 - DemoPia]  - lib/arm64-v8a/libsqlc-native-driver.so
[2015-07-23 16:13:58 - DemoPia]  - lib/armeabi/libsqlc-native-driver.so
[2015-07-23 16:13:58 - DemoPia]  - lib/armeabi-v7a/libsqlc-native-driver.so
[2015-07-23 16:13:58 - DemoPia]  - lib/x86/libsqlc-native-driver.so
[2015-07-23 16:13:58 - DemoPia]  - lib/x86_64/libsqlc-native-driver.so

我尝试关注this链接,但仍然收到同样的错误。 有人可以帮我这个吗? 谢谢

1 个答案:

答案 0 :(得分:0)

如果你继续得到同样的错误,那么库sqlite-native-driver.jar仍然潜伏在你的libs目录中。如您所链接的phonegap sqlite plugin error所述,您必须执行以下步骤:

  1. 提取sqlite-native-driver.jar的内容(使用jar xf sqlite-native-driver.jar或jar xvf sqlite-native-driver.jar)
  2. 将从sqlite-native-driver.jar中提取的lib目录的内容复制到libs目录中
  3. 确保从libs目录中删除sqlite-native-driver.jar,否则将继续看到相同的错误
  4. 最后,我建议您完全清理所有构建工件的项目,并在模拟器或设备上卸载应用程序。