-
Notifications
You must be signed in to change notification settings - Fork 82
Closed
Description
I have custom native java code that i interact with through a method channel from flutter. I reuse this plugin through multiple apps. I would like to use JNIGen to use this same java source code, however when trying to run it I get the error
(jnigen) INFO: trying to obtain gradle dependencies [getReleaseCompileClasspath]...
(jnigen) INFO: Restoring build scripts
Unhandled exception:
gradle exited with status 1
. This can be because the Android build is not yet cached. Please run `flutter build apk` in .\ and try again
#0 AndroidSdkTools._runGradleStub (package:jnigen/src/tools/android_sdk_tools.dart:207:7)
#1 AndroidSdkTools.getGradleClasspaths (package:jnigen/src/tools/android_sdk_tools.dart:144:7)
#2 getSummary (package:jnigen/src/summary/summary.dart:136:34)
#3 generateJniBindings (package:jnigen/src/generate_bindings.dart:31:21)
<asynchronous suspension>
#4 main (file:///D:/Pub/Cache/hosted/pub.dev/jnigen-0.12.0/bin/jnigen.dart:18:3)
<asynchronous suspension>
however I cannot run flutter build apk as its not yet in a example project. Would it be possible to have the java and bindings generated into a plugin/package that I can export into other applications and use it there ?
Metadata
Metadata
Assignees
Type
Projects
Status
Done