This message was deleted.
# android
s
This message was deleted.
m
I see that generated *.class files in the module contains the changes, i see by decompiling it. But they are not used in generating the APK.
n
When you are expecting the files to be in the generated APK, what is the procedure you use to generate the APK and in which folder are you finding this APK?
m
I click run in the Android Studio, or gradlew appassembleDebug. /app/build/outputs/apk/
n
let's focus on the case where you are running appassembleDebug. Is the relevant compile task re-running or up-to-date when you make changes to the code?
m
I sent it as DM.
I see it runs > Task gh backendcompileDebugKotlin
APK is not updated though
n
which apk are you looking at?
m
./app/build/outputs/apk/uk/debug/app-uk-debug.apk
n
From the build output you sent me, it seems there are some transforms or transform plugins in your build, do you know what they are or what they do?
m
Thanks for pointing to plugins.
Copy code
'gradle.plugin.com.github.sgtsilvio.gradle:android-retrofix:0.4.1'
this was the route cause that helps to backport java 8 APIs. When I remove it, everything works fine.
n
backporting java 8 apis is built in to AGP. what does this plugin cover that is not covered by AGP?
m
We are using hivemq and they recommended it in here for api level < 24 https://hivemq.github.io/hivemq-mqtt-client/docs/installation/android/
I will test with coreLibraryDesugaringEnabled true
n
what is your target API?
m
33
minsdk 21
n
i see. i wouldn't be surprised if that documentation is old and doesn't know that this is built in to AGP
let me know how it goes!
m
Sure, thanks, I was suffering for 1 week. You change code and it is not going to APK.
Thanks a lot!
@no May I mention you while answering my question in stackoverflow?
n
sure!
👍 1