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 truereset()

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

Logo

华为开发者空间,是为全球开发者打造的专属开发空间,汇聚了华为优质开发资源及工具,致力于让每一位开发者拥有一台云主机,基于华为根生态开发、创新。

更多推荐