When trying to import some sample code using Android’s BackupManger, I received the following error.
I was really surprised that a search for that specific string didn’t return anything, so I found out the answer myself.
BackupManager for Android was added in API 8 (2.2). So, when the android:minSdkVersion is lower than 8, this error will show. After making sure the android:minSdkVersion is at least 8, Eclipse may not automatically change the project.properties file to represent the same thing. My problem was that in project.properties, there was target=android-4, instead of the target=android-8. You’ll need the later in order for the android.app.backup.BackupManager to be found.