Problems encountered in Android Studio use resolved

Source: Internet
Author: User

A relatively uncommon problem has recently been encountered in the use of AS. Spend more time to solve, online information is also relatively small, so leave a record here, convenient for others.


The first is the problem description:

In Android development we must be tired of Findviewbyid and Setonclicklistener (), so looking for a lazy way is also inevitable, here I used the more famousButterknifeFramework, the specific use of a lot of things I would not say in detail, I would say that after I used this framework, Android studio built when the time to tell me that the compilation error. The error log is as follows:@Bind-annotated class incorrectly in the Android framework package. (android.xxx.xxx...)at that time was blindfolded, searched a lot of did not find the answer, today was fortunate to find a post link , finally let me solve. The main point of this post is that my package name is a problem, because my outermost package name named Android (I do not know is not as automatically added to the), when compiling, our application is not allowed to start with android.* or java.* package name, So the package name can be changed to run your app properly.

Speaking of the as in the name of the package rename, at the beginning of the eclipse like to Refactor-rename seemingly no way to do the change of the package name, search on the web to find as can easily modify the package name method, here on the science, already know Daniel can skip, spacecraft here, to see it Android Studio modifies the package name .

Problems encountered in Android Studio use resolved

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.