2017-03-16 69 views
-1

我下載了'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 

現在,我的項目可以打造得很好。 但我不明白我做了什麼。

有人請向我解釋。這意味着錯誤以及代碼如何解決這個錯誤。

+0

參考http://stackoverflow.com/questions/28871084/how-to-fix-plugin-with-id-com-github-dcendents-android-maven-not-found-in-and – sasikumar

+0

可能的重複[如何修復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) –

回答

1

文件>項目結構

正如我上面寫的,因爲它是NDK R14的規格,我們可以下載NDK R13B後做。

在不久的將來會是r14,但您也可以下載舊版本,所以請自行檢查。

相關問題