Skip to content
This repository has been archived by the owner on May 10, 2024. It is now read-only.

Unresolved reference: tensorflow #9

Open
fatoboist opened this issue Dec 29, 2021 · 1 comment
Open

Unresolved reference: tensorflow #9

fatoboist opened this issue Dec 29, 2021 · 1 comment

Comments

@fatoboist
Copy link

Expected Behavior

Codelab1 starter project runs on emulated device and shows "recording" screen

Actual Behavior

Build fails, unresolved reference: tensorflow

Steps to Reproduce the Problem

  1. follow steps in codelab for get the sample code
  2. Build fails
  3. Comment out line 8 of MainActivity.kt and build runs on emulated device

Specifications

  • Version: Android Studio Arctic fox, Runtime version 11
  • Platform: macOS/ emulated Galaxy Nexus API 30
@YihanDong0828
Copy link

Hi! I had the same problem.
I fixed the problem and hoped my experience could help anyone.
I have no knowledge of coding or Andriod Studio, so my explanation maybe not be logical and reasonable. But it finally worked.

Firstly, go to Gradle Scripts-build.gradle (Module: My_Sound_Classification.app) and find targetSdkVersion. Set the SdkVersion to 33. Before it was 30, but Google has a new kind of update plan, so you need to update it as well.

Then, find a phone with Andriod 10-12 system. Do not use a very new Andriod phone, it would not work unless you know how to add an android name = true (not working for me, since I couldn't understand.)

Finally, make your old phone into a developer version and open debugging section (literally open all the USB-related power). Sync the project and run the app. It should work now.

I hope this could help anyone confused with the early setup stage.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants