Hi,
Thanks for SNPE - it's much better than anything else for Android.
Trying to incorporate SNPE into an Android Studio App and I followed the setup instructions :
Gradle Integration -
allprojects {
repositories {
...
flatDir {
// Marks the directory as a repository for
// dependencies. Please the snpe-release.aar
// in the directory below.
dirs 'libs'
}
}
}
...
dependencies {
...
// This adds the SNPE SDK as a project dependency
compile(name: 'snpe-release', ext:'aar')
}
Only works if I also do :
android {
splits {
abi {
enable true
reset()
include "arm64-v8a", "armeabi-v7a"
universalApk true
}
}
}
It all compiles fine but the linking steps seem to die when trying to strip the files in the AAR.
.../Library/Android/sdk/ndk-bundle/toolchains/arm-linux-androideabi-4.9/prebuilt/darwin-x86_64/bin/arm-linux-androideabi-strip
Error:error: the input file '.../output/jni/armeabi-v7a/libsnpe_dsp_skel.so' has no sections
Error:error: the input file '.../build/intermediates/transforms/mergeJniLibs/release/folders/2000/3/main/lib/armeabi-v7a/libsnpe_dsp_skel.so' has no sections
Error:Execution failed for task ':app:transformNativeLibsWithMergeJniLibsForDebug'.
Has anyone else encountered this?
Thanks.
Rex