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