0

Example: link

android:track="@drawable/switch_bg" 

Eclipse outputs:

error: No resource identifier found for attribute 'track' in package 'android'

Manifest:

<uses-sdk
    android:minSdkVersion="14"
    android:targetSdkVersion="17" />

This file switch_bg was created. What's the problem?

Vadim Kotov
  • 7,766
  • 8
  • 46
  • 61
Forme
  • 201
  • 3
  • 16

1 Answers1

2

android:track and the corresponding setTrackResource(int) method are only available since API 16, you should set android:minSdkVersion="16"

UPD Actually what matters is the build target. Select at least API 16 build target in Project -> Properties -> Android

Ivan Bartsov
  • 17,904
  • 6
  • 57
  • 58