Is 'transition' an invalid resource directory name on Android?

前端 未结 2 1837
孤街浪徒
孤街浪徒 2021-01-24 12:06

I make the ApiDemos project from Android Sample Project. Unfortunately, the project complains invalid resource directory name transition /ApiDemos/res line 1 Android

相关标签:
2条回答
  • 2021-01-24 12:19

    In case another bonehead like me comes here: I didn't have version 19 of the API installed :P

    Open up your SDK manager and download any necessary version. I just had the latest version installed (22?).

    Also, this was for Xamarin for me. But it could be the case for others, too.

    0 讨论(0)
  • 2021-01-24 12:25

    Yes, transition resources are valid as of API 19.

    To get rid of the error, make your build SDK API level 19 or higher.

    To do that, in Eclipse/ADT, either

    • open Project Properties, go to Android and select Project Build Target as API 19, or

    • edit project.properties at project root and edit target to e.g. android-19

    Of course, you will have to have SDK 19 installed with SDK Manager and have up-to-date build tools installed.

    0 讨论(0)
提交回复
热议问题