fatihsokmen / android-icecast-broadcast

🎷 Android Audio Broadcast. Captures real-time audio from microphone, encodes and streams over icecast protocol
53 stars 22 forks source link

java.lang.UnsatisfiedLinkError #12

Open colorgold opened 1 month ago

colorgold commented 1 month ago

I created a new project referencing yours, but I get this error:

java.lang.UnsatisfiedLinkError: No implementation found for int com.example.caster.shout.ShoutOutputStream.jniInit(java.lang.String, int, java.lang.String, java.lang.String, java.lang.String) (tried Java_com.example.caster_shout_ShoutOutputStream_jniInit and Java_com.example.caster_shout_ShoutOutputStream_jniInit__Ljava_lang_String_2ILjava_lang_String_2Ljava_lang_String_2Ljava_lang_String_2)
                                                                                                        at com.example.caster.shout.ShoutOutputStream.jniInit(Native Method)
                                                                                                        at com.example.caster.shout.ShoutOutputStream.init(ShoutOutputStream.java:28)
                                                                                                        at com.example.caster.shout.Encoder$1.run(Encoder.java:172)

I added this to my build.gradle (:app) to build the native libs, but many more error appear:

  externalNativeBuild {
     ndkBuild {
          path file('G:\\HOME\\Android\\Projects\\BroCast\\jni\\Android.mk')
       }
    }

I cloned the project and tested without changing the project's and package's name and it works. I was wondering what NDK version was used or how I can build the native libs.

MrKhay commented 3 weeks ago

Where you able to fix issue ?

colorgold commented 2 weeks ago

Where you able to fix issue ?

I changed the project's namespace in build.gradle(ProjectName) to ice.caster.android. However, If publishing to Google Play Store, you will need the 64-bit .so files.

MrKhay commented 2 weeks ago

Do you have the .so build ?

On Mon, Aug 26, 2024, 6:30 PM colorgold @.***> wrote:

Where you able to fix issue ?

I changed the project's namespace in build.gradle(ProjectName) to ice.caster.android. However, If publishing to Google Play Store, you will need the 64-bit .so files.

— Reply to this email directly, view it on GitHub https://github.com/fatihsokmen/android-icecast-broadcast/issues/12#issuecomment-2310711251, or unsubscribe https://github.com/notifications/unsubscribe-auth/AXGGQE7NMILGOXWJHACQ7HTZTNQ4TAVCNFSM6AAAAABLLKZVZSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGMJQG4YTCMRVGE . You are receiving this because you commented.Message ID: @.***>

colorgold commented 1 week ago

Where you able to fix issue ?

I changed the project's namespace in build.gradle(ProjectName) to ice.caster.android. However, If publishing to Google Play Store, you will need the 64-bit .so files.

I've run into issues when running ndk-build. This is how I've tried to build them:

        externalNativeBuild {
        ndkBuild {
            path file('C:\\Android-Projects\\liveaudio-icecast-broadcast\\jni\\Android.mk')
        }
    }