我下载了'Tess-two'库。 在项目被ndk-builded &在cmd中的ant释放后,我在我的项目中导入了库。请解释我。 '没有找到id的插件','Android NDK未定义模块'
这里有一个错误。
'Plugin with id 'com.github.dcendents.android-maven' not found.'
我已经解决了,只需在我的应用程序模块gradle中添加2行即可。 样这个
classpath 'com.github.dcendents:android-maven-gradle-plugin:1.5'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.3'
错误被彻底解决,但另一个错误出现。
C:/android-ndk-r14/build//../build/core/build-binary.mk:687: Android NDK: Module
pngt depends on undefined modules: z
C:/android-ndk-r14/build//../build/core/build-binary.mk:700: *** Android NDK: Ab
orting (set APP_ALLOW_MISSING_DEPS=true to allow missing dependencies).Stop.
此时,我只在tess-two \ jni \ Application.mk中添加了一行。
APP_ALLOW_MISSING_DEPS=true
现在,我的项目可以打造得很好。 但我不明白我做了什么。
有人请向我解释。这意味着错误以及代码如何解决这个错误。
参考http://stackoverflow.com/questions/28871084/how-to-fix-plugin-with-id-com-github-dcendents-android-maven-not-found-in-and – sasikumar
可能的重复[如何修复id为'com.github.dcendents.android-maven'的插件未找到。在Android工作室](http://stackoverflow.com/questions/28871084/how-to-fix-plugin-with-id-com-github-dcendents-android-maven-not-found-in-and) –