-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Android example with newer Android Gradle plugin version #22
Comments
Right, that probably needs to be updated. I'm guessing some of the tasks from the plugin for Android have changed, so try to update their names and see if that works. |
It seems that the task with name So, after I replaced def configureCMake = project.tasks.findAll {
it.name.startsWith("configureCMake$variantName")
} and configureCMake.forEach {
it.dependsOn "javacppBuildCompiler$variantName"
} the example builds successfully with |
I've updated the README.md file as per your findings. Thanks for reporting! |
I'm not sure if this issue should be put here or in /~https://github.com/bytedeco/sample-projects, sorry if I misplace it.
So, the current example for Android uses
com.android.tools.build:gradle:4.1.1
and it builds fine, but when I update the Android plugin to7.1.3
, the project won't build complaining thatjniNativeLibrary.cpp
andjnijavacpp.cpp
cannot be found:And indeed
jniNativeLibrary.cpp
andjnijavacpp.cpp
are not built. I figure that probably JavaCpp tasks dependencies need to be changed inapp/build.gradle
, but I'm struggling to do it on my own. Can you please update the example project?The text was updated successfully, but these errors were encountered: