Forums - Cannot resolve symbol 'SNPE'

3 posts / 0 new
Last post
Cannot resolve symbol 'SNPE'
junwei_qiu
Join Date: 17 Jun 19
Posts: 1
Posted: Thu, 2022-12-01 01:28

Hello

I am trying  to build Qualcomm Neural Network AI android example, image-classifiers, in android studio in Ubuntu18.04.

I get the following error

Cannot resolve symbol 'SNPE'.

Cannot resolve symbol 'NeuralNetwork'

Cannot resolve symbol 'FloatTensor'

...

...

build.gradle

dependencies {
    implementation(name: 'snpe-release', ext:'aar')
    testImplementation 'junit:junit:4.13.2'
}

Any help or insight would be greatly apprectiated.

Best regards,

  • Up0
  • Down0
weihuan
Join Date: 12 Apr 20
Posts: 270
Posted: Sat, 2022-12-10 23:58

Dear customer,

What's SDK version your tested?

I suspect below lines will help you.

https://github.com/mlcommons/mobile_app_open/commit/0dfbe8500bfc5799f06f354297bf35531ff6498b

 

BR.

Wei

  • Up0
  • Down0
SahilBandar
Join Date: 23 May 18
Posts: 37
Posted: Mon, 2022-12-12 20:32

Hi junwei_qiu,

Make sure that you have included the snpe-release.aar properly in your source tree.
As mentioned in SNPE documentation you must need to keep the copy of snpe-release.aar inside the libs folder.
Follow the instruction carefully on the link given below,

https://developer.qualcomm.com/sites/default/files/docs/snpe/android_tut...

Hope this might resolve your problem.
If issue still persist, please let me know with the further error logs.

Regards,
Sahil Bandar

  • Up0
  • Down0
or Register

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.