Android Studio create Android Project Hello

Source: Internet
Author: User

Android Studio is a very useful software, but at the beginning of the use, because of various problems, will fail, and the novice itself does not understand the situation, more confused force.

Here I'll take a look at some of the pits I've met.

First, Android Studio has been installed, create a new project

There's a run button on it.

At the beginning, you will encounter a problem with the following error:

Failed to load AppCompat ActionBar with UnkNown error

Workaround:

Find the global style file in the Androidmanifest.xml file click Theme, link to the Styles.xml file

Change the partent to a bit.

Run here, it can be run, and then you can drag the components into the app, you will start to encounter problems, see the components dragged over.

The error is:

 is isn't constrained, it's only have designtime positions, so it'll jump to (0,0) unless you

Just click on the wand and you'll see the dragged control.

At this point the run can see success:

Android Studio create Android Project Hello

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.