Open SirLynix opened 1 year ago
assembleDebug needs to be called, but installDebug does not call it. This should not be something that the xmake plugin does.
This is weird, because if I gradlew --info installDebug --rerun-tasks
to force rerun (or gradlew clean
beforehand) then everything works.
If I change a log in my C++ file, then run gradlew --info installDebug --rerun-tasks
then run the .apk in my emulator the log is up to date
Full log: build_log.txt
assembleDebug can't be executed:
> Task :android_test:assembleDebug UP-TO-DATE
Skipping task ':android_test:assembleDebug' as it has no actions.
assembleDebug can't be executed:
> Task :android_test:assembleDebug UP-TO-DATE Skipping task ':android_test:assembleDebug' as it has no actions.
just java files are changed, it will be run.
My Java class only loads library, everything my app does is in the .so.
I don't know which task copies the .so to the .apk but this one needs to be run after xmake installed to make it up to date.
My Java class only loads library, everything my app does is in the .so.
I don't know which task copies the .so to the .apk but this one needs to be run after xmake installed to make it up to date.
assembleDebug will generate apk, so it need be rerun
assembleDebug
does nothing in my case, even if I execute it with --rerun-tasks.
Cleaning the whole project and then running gradlew installDebug
generates a .apk in build/outputs/apk/debug, but I don't know how to get better logs to know which task creates it.
Xmake Version
2.7.6
Operating System Version and Architecture
Windows 11
Describe Bug
When running
gradlew installDebug
after a C++ change, xmake recompiles the .so binary but it doesn't get packaged, so the .apk contains the old code.with more logs:
Expected Behavior
That it assembles/packages everytime xmake produces a new build to update the .apk
Project Configuration
Here's my build.gradle: