Solve the problem that the Mono for android xml editor cannot complete code.

Source: Internet
Author: User

These two days are for dark horse programmers. net training camp. net developed the Mono for Android technology for android, and found that the development tool used is particularly stuck when debugging is stopped. It can be stuck for dozens of seconds, and an error dialog box is often displayed, seriously affecting your mood, therefore, we downloaded and installed the latest development tool Xamarin Mono For Android 4.6 yesterday. After installation, it's so nice that you don't get stuck or talk about the dialog box. But soon I found a big problem: "The axml editor cannot automatically prompt tags", which is too low development efficiency.

When you encounter a problem, you must learn to analyze the problem. visual studio provides automatic prompts and Code Completion functions for xml files. The principle is: visual studio will find the xsd file consistent with the schema of the currently edited xml file in Xml \ Schemas under the installation path of Visual studio according to the schema Declaration of the currently edited xml file, because the xsd file is a standard constraint on the xml file format, how does VS automatically prompt. The automatic prompt function for files such as Web. config is implemented in this way.

Now that you understand this principle, let's take a look at it. When you open the Xml \ Schemas folder, you will find a monodroidcatalog. xml file that seems to be related to monoandroid. When you open this file, you will find the following content:

<SchemaCatalog xmlns="http://schemas.microsoft.com/xsd/catalog">  <Schema href="%ProgramFiles%/MSBuild/Novell/android-layout-xml.xsd" />  <Schema href="%ProgramFiles%/MSBuild/Novell/schemas.android.com.apk.res.android.xsd" targetNamespace="http://schemas.android.com/apk/res/android" />  <Association extension="axml" schema="%ProgramFiles%/MSBuild/Novell/android-layout-xml.xsd" /></SchemaCatalog>

Guess this file is telling VS "xsd file in % ProgramFiles %/MSBuild/Novell/Under the android-layout-xml.xsd and other files", equivalent to a "author ", however, I opened % ProgramFiles %/MSBuild/Novell/but found that these files were not found at all. It seems that the problem was found.
Search on the disk, in C: \ Program Files \ Xamarin Studio \ AddIns \ MonoDevelop. android-layout-xml.xsd?schemas.android.com.apk. res. android. copy the xsd files to % ProgramFiles %/MSBuild/Novell.

It is not difficult to deal with everything. If you encounter problems, you must learn to read error messages and analyze them. Don't hit them like a headless fly.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.