Android development: Create an Android Application. The src and layout folders are empty (including creating a simulator and solving simulator exceptions)

Source: Internet
Author: User

First, there may be many reasons for this problem, but in most cases it is caused by inconsistent SDK and ADT versions.

At the beginning of Android development, ADT Bundle was directly downloaded from Android Developers. Its ADT version is 22.3. Later, the SDK automatically updated to 22.6, but the ADT was not updated, therefore, the above problems occur.

Directly update the ADT to solve the problem. The ADT update method is as follows:

Http://blog.csdn.net/shengxia0dubing/article/details/21334273

PS:

1. the inconsistency between the ADT and SDK versions may also lead to simulator exceptions. The direct manifestation is that the management Simulators of SDK Manager and AVD Manager are inconsistent.

We know that you can create a simulator in two ways: (1) Click SDK Manager -- Tools -- Manage AVDs and click New in the pop-up AVD Manager window. Steps are as follows:

Note: If the Target option is only available for the latest version, you need to update the SDK. The update method is as follows:

Http://blog.csdn.net/shengxia0dubing/article/details/21334273

The result after the simulator is created is as follows:

(2) Click AVD Manager. The AVD Manager window shown is displayed. Then, click New to create the Manager. The method is the same as above.

Note: When the ADT is not updated and its version is different from the SDK version, you cannot create a new simulator using the second method. The following problems may occur when you create a new simulator:

CPU/ABI is not optional, and the system prompts No system images installed for this target. However, you have installed system images, as shown below:

In fact, the second method does not allow you to create a new simulator. The problem is that after you open AVD Manager in the second method, you can see that the simulator created in the first method is split (not the right sign, but the split graph marked before the simulator ).

Let's click Details to see why the simulator is split. In fact, this explanation is really confusing and cannot solve the problem according to his prompt. This is why I am confused!

In fact, this graph is broken! Because you find that you have worked hard to write an application and want to debug it through a simulator or a real machine, but it doesn't work at all! The farthest distance in the world is that the simulator runs clearly, but cannot be simulated.

Finally, I am a beginner. I hope readers will forgive me for your improper expression. Thank you for your criticism and guidance.

Zookeeper

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.