mozilla / rust-android-gradle

Apache License 2.0
1.03k stars 67 forks source link

.so does not end in .apk #108

Closed lattice0 closed 2 years ago

lattice0 commented 2 years ago

I'm having some crazy problem where the .so does not end in my .apk, neither in build/app/rustJniLibs/android/arm64-v8a. It used to work before, but not now. I see the rust messages of the app being built, but then it does not end up there.

tasks.whenTaskAdded { task ->
    if ((task.name == 'javaPreCompileDebug' || task.name == 'javaPreCompileRelease')) {
        task.dependsOn 'cargoBuild'
    }
}
apply plugin: 'org.mozilla.rust-android-gradle.rust-android'

cargo {
    module  = "../../../libsomething"
    libname = "something"  
    verbose = false
    apiLevel = 28
    profile = 'debug'
    targets = ["arm64"]
    features {
        defaultAnd("android")
    }
}

Any tips on how to debug what is happening?

lattice0 commented 2 years ago

closed as better descripted here https://github.com/mozilla/rust-android-gradle/issues/109