Android: Loading Android Design Support Library Exception solution

Source: Internet
Author: User

  Google's latest compatibility Pack Android Design Support library adds a number of controls that conform to the material designs specification, such as the navigation view,floating Action Button, Snackbar,tabs,coordinatorlayout,appbarlayout,collapsingtoolbarlayout and so on.

The author also updated the SDK in time and got the Android Design Support library supporting package, but there were some problems in the process of importing Eclipse project, and reported "Error:no resource found that matches The given name:attr ' Backgroundtint '"exception. After research, it is known that the implementation of the Android Design Support Library is based on the AppCompat package, use to increase the support appcompat, at this time only need to "right-click the library project folder and select Properties > Click Add > Add appcompat_v7 > Click Apply. But this is not the end, according to the above operation, the Eclipse project under the Red Fork, although disappeared, but the project catalog still has a red fork. This is an old problem with the ADT plugin, choose the Options Menu Project > Choose Clean ... can solve the problem.

 This blog has been published earlier , and then handled the Android Design support Library load exception in the way described above, although the Eclipse Catalog's red fork was removed, but running Android Application also reported "caused by:java.lang.NoClassDefFounderror:android.support.design.r$styleable "Abnormal, their own baffled solution, afraid of affecting the reader to judge the deletion of the blog." After careful research, we also looked at similar problems on the StackOverflow, and found that the above method is the surest way to deal with this anomaly at present. However, it is emphasized that the Eclipse project should be recompiled regardless of whether a red fork will appear after adding APPCOMPAT_V7 support.

The above method is not necessarily positive solution, if the same confused readers have a better solution, welcome message exchange.

Android: Loading Android Design Support Library Exception solution

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.