ionic怎么调用android代码,Ionic生成的android项目中,如何引用第三方项目作为library?...

我有一个使用ionic生成的android项目。使用android studio打开后,引用了一些第三方项目。项目结构如下:

bVStFM?w=1114&h=362

其中,livenesslib、ocridcardlibrary...等都是引用的第三方项目。之后修改project.properties中内容如下:

target=android-25

android.library.reference.1=CordovaLib

android.library.reference.2=livenesslib

android.library.reference.3=ocridcardlibrary

android.library.reference.4=Ocr_BankCard_Library

android.library.reference.5=ocrnamecardLibrary

cordova.system.library.1=com.android.support:support-v4:24.1.1+

cordova.gradle.include.1=cordova-plugin-crosswalk-webview/androidmid-xwalk.gradle

在使用ionic build android试图build时,报出以下错误:

Error: cmd: Command failed with exit code 1 Error output:

FAILURE: Build failed with an exception.

* What went wrong:

A problem occurred configuring root project 'android'.

> Could not resolve all dependencies for configuration ':_armv7DebugApk'.

> Project : declares a dependency from configuration 'debugCompile' to configuration 'debug' which is not declared in the descriptor for project :livenesslib

.

如图:

bVStGt?w=822&h=366

对ionic实在不熟,头疼了一天都没能弄好,请问应该如何解决?先行谢过!

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值