An Android project created by Eclipse or Adt-bundle does not automatically generate file solutions such as Mainactivity.java and Activity_main.xml

Source: Internet
Author: User

My computer used to be eclipse3.7 to develop Android projects, and the creation of Android projects would normally generate files such as Mainactivity.java and Activity_main.xml. Later do not know what the reason, the computer several disk files on a lot of open are garbled. Find a lot of methods can not be solved, so the hard drive to the format of the system re-installed.

After reinstalling the system, reconfigure the eclipse's Android development environment, but found that the created Android project does not generate Mainactivity.java and activity_ properly Main.xml and other documents, on the Internet to find a lot of methods have not been able to solve, since the change of an Android integrated development environment adt,adt-bundle-windows-x86-20131030, but found also created by the Android project can not be normal generation Mainactivity.jav Files such as a and activity_main.xml. These two development environments can be created normally before the system is re-installed.

  Workaround: The reason is that before I reload the system, the Android SDK was downloaded through the SDK Manager.exe when Google was not yet on the wall, and the Android SDK I used after reloading the system was a training SDK for trainers (now think, It should be the SDK is not complete). And I pointed Adt-bundle's work space to eclipse3.7 's work space. So the SDK configured by Adt-bundle is the configuration that references eclipse, or the SDK that points to the training organization (note that ADT integrates its own Android SDK). I later pointed the Adt-bundle Android SDK path back to the ADT Integrated Android SDK, resulting in the creation of an Android project that would normally generate files such as Mainactivity.java and Activity_main.xml. Again, I've also pointed the eclipse3.7 Android SDK back to the ADT Integrated Android SDK, which can also be generated normally.

  In the final analysis, my reason for this is because the Android SDK is incomplete.

An Android project created by Eclipse or Adt-bundle does not automatically generate file solutions such as Mainactivity.java and Activity_main.xml

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.