The attribute is not declared (Android) on basic xml attributes

后端 未结 3 1666
灰色年华
灰色年华 2020-12-14 07:48

I\'m new to this Android development, and I find the layout of it really confusing. I\'m trying to have a background image on a view, and I\'ve tried using this example Add

3条回答
  •  不思量自难忘°
    2020-12-14 08:10

    As I know, those attributes (that you pointed out above) aren't defined in jdk_1.7.

    Use jdk_1.8 instead.

    You can configure the path to the JDK in the following way:

    Microsoft Visual Studio 2015 -> Tools -> Options -> Xamarin -> Android Settings -> JDK Location [Change]

    Remark

    If you are using Microsoft Visual Studio 2015 Update 3 or one of the earlier versions, I assure you that the warning won't disappear... this is already the Intellisense's issue (not the JDK's). It has to be fixed in the future release.

提交回复
热议问题