Forums - Android Studio 2.3.3

1 post / 0 new
Android Studio 2.3.3
Rex
Join Date: 8 Aug 15
Posts: 45
Posted: Thu, 2017-08-10 14:52

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
  • Up0
  • Down0

Opinions expressed in the content posted here are the personal opinions of the original authors, and do not necessarily reflect those of Qualcomm Incorporated or its subsidiaries (“Qualcomm”). The content is provided for informational purposes only and is not meant to be an endorsement or representation by Qualcomm or any other party. This site may also provide links or references to non-Qualcomm sites and resources. Qualcomm makes no representations, warranties, or other commitments whatsoever about any non-Qualcomm sites or third-party resources that may be referenced, accessible from, or linked to this site.