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
  • 8,084
  • 8
  • 48
  • 62
Forme
  • 301
  • 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
  • 19,664
  • 7
  • 61
  • 59