See file:///D:/jni-library-sample-master/jni-greeter/build/tmp/compileDebugCpp/output.txt for all output for compileDebugCpp.
compiling Greeter.cpp failed.
Greeter.cpp
D:\jni-library-sample-master\jni-greeter\src\main\cpp\Greeter.cpp(1): fatal error C1083: Cannot open include file: 'com_example_greeter_Greeter.h': No such file or directory
Finished compileDebugCpp, see full log file:///D:/jni-library-sample-master/jni-greeter/build/tmp/compileDebugCpp/output.txt.
17:26:02: Executing task 'Main.main()'...
> Task :jni-library-plugin:extractPrecompiledScriptPluginPlugins UP-TO-DATE
> Task :jni-library-plugin:generateExternalPluginSpecBuilders UP-TO-DATE
> Task :jni-library-plugin:compilePluginsBlocks UP-TO-DATE
> Task :jni-library-plugin:generatePrecompiledScriptPluginAccessors UP-TO-DATE
> Task :jni-library-plugin:configurePrecompiledScriptDependenciesResolver
> Task :jni-library-plugin:generateScriptPluginAdapters UP-TO-DATE
> Task :jni-library-plugin:compileKotlin UP-TO-DATE
> Task :jni-library-plugin:compileJava NO-SOURCE
> Task :jni-library-plugin:pluginDescriptors UP-TO-DATE
> Task :jni-library-plugin:processResources UP-TO-DATE
> Task :jni-library-plugin:classes UP-TO-DATE
> Task :jni-library-plugin:inspectClassesForKotlinIC UP-TO-DATE
> Task :jni-library-plugin:jar UP-TO-DATE
> Task :jni-greeter:compileJava
> Task :app:compileJava
> Task :app:processResources NO-SOURCE
> Task :app:classes
> Task :jni-greeter:processResources NO-SOURCE
> Task :jni-greeter:classes
> Task :jni-greeter:compileDebugCpp
Greeter.cpp
D:\jni-library-sample-master\jni-greeter\src\main\cpp\Greeter.cpp(1): fatal error C1083: Cannot open include file: 'com_example_greeter_Greeter.h': No such file or directory
> Task :jni-greeter:compileDebugCpp FAILED
> Task :native-greeter:compileDebugCpp
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':jni-greeter:compileDebugCpp'.
> A build operation failed.
C++ compiler failed while compiling Greeter.cpp.
See the complete log at: file:///D:/jni-library-sample-master/jni-greeter/build/tmp/compileDebugCpp/output.txt
> C++ compiler failed while compiling Greeter.cpp.
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
* Get more help at https://help.gradle.org
BUILD FAILED in 1m 53s
4 actionable tasks: 4 executed
17:27:58: Task execution finished 'Main.main()'.
I followed this project to use JNI in JPRO : https://github.com/eskatos/jni-library-sample
But , I have the following error
OUTPUT.txt
How can I solve this error ?