0

How can I fix this error? I am new to Android and I would like to build an example Project Tango AR code inside Android Studio.

Failed to sync Gradle project 'java_augmented_reality_example'
Error:Cause: failed to find target with hash string 'android-19' in: /Users/mona/Library/Android/sdk
Open Android SDK Manager

enter image description here

Here's the code I am using:

git clone https://github.com/googlesamples/tango-examples-java.git
Mona Jalal
  • 34,860
  • 64
  • 239
  • 408

2 Answers2

0

The error was fixed by downloading Android SDK 19 from Android SDK manager as shown in the screenshots below: enter image description here

enter image description here

Mona Jalal
  • 34,860
  • 64
  • 239
  • 408
0

Ii shows that Android Studio lack local 19 API.You can download this API with SDK or change compile API to anothor.Open build.gradle and change targetSdkVersion.

defaultConfig {
        applicationId "com.tony.newsapp"
        minSdkVersion 18
        targetSdkVersion 19
        versionCode 1
        versionName "1.0"
    }
TanLingxiao
  • 402
  • 5
  • 7