Move CmakeList.txt generation after clean task
See original GitHub issueThank you for the nice plugin! 👍
While trying to replace my own implementation with this, I ran in to a somewhat a problem, so maybe some one else is also experiencing this.
I like to sometimes run a clean
task before building my project (mostly when deploying), and with that task in place the compiler game me an error that the file specified in the externalNativeJsonGenerator.makefile
property does not exist. Some investigation revealed that the CMakeLists.txt
is generated in the afterEvaluate
callback witch is executed before the clean
task, so on the clean
task the file is deleted.
So I was wondering if it is plausible of moving the generation after the clean
task?
Maybe it can be hooked to after/before preBuild
task?
The issue can be simulated with the sample projects by running a clean
when building ./gradlew sample:clean sample:assemble
A problem was found with the configuration of task ':sample:generateJsonModelDebug'.
> File '/Users/darius/workspace/android/Cipher.so/sample/build/cipher.so/cmake/CMakeLists.txt' specified for property 'externalNativeJsonGenerator.makefile' does not exist.
Issue Analytics
- State:
- Created 6 years ago
- Comments:15 (5 by maintainers)
@kibotu it looks like it’s caused by the file path, please try it again within the dev-SNAPSHOT channel
if still no work, show me more infos
I just encountered the same issue:
Any progress on a fix?