gnuradio-android icon indicating copy to clipboard operation
gnuradio-android copied to clipboard

Prebuild Dependency in build.gradle

Open ne1 opened this issue 4 years ago • 1 comments

Hi,

in the new Version from Android Studio there is a change in jniLibs.

https://developer.android.com/studio/releases/gradle-plugin#cmake-imported-targets

After performing the Upgrade the App will not compile anymore:

More than one file was found with OS independent path 'lib/arm64-v8a/libuhd.so'. If you are using jniLibs and CMake IMPORTED targets, see https://developer.android.com/studio/previev/features#automatic_packaging_of_prebuilt_dependencies_used_by_cmake

ne1 avatar Jul 26 '20 21:07 ne1

Thanks for bringing this up. I'm not very familiar with maintaining Android apps, but for me it seems as if the Gradle version is specified in the app: https://github.com/bastibl/android-benchmark/blob/master/build.gradle#L11

I'd assume you manually upgraded (probably through the IDE) to a new major version with breaking changes. Or did this happen automatically?

I could try to chase the most recent version of the many tool of the Android build system, but I'm not sure if this is the best approach in the long run.

bastibl avatar Jul 29 '20 14:07 bastibl