简体   繁体   中英

problems with R folder and library

I tried to import this library: https://github.com/Eaiman/BitmapHandler into my android project.

However, when I import it, my project got lots of errors with android.support.v4.app library. I hovered the problem and fixed it with the option "Add project 'BitmapHandler' to build path of this project". It seemed ok to me and fixed my first problem. But now I'm no longer able to reference my projects R folder. When I hover to fix the problem it asks me if I want to build the path of R.android but that's not what I want, I just want to reference my own R folder to the images I have.

How can I solve this problem? Thank you very much for your attention

Make sure to place the library, which you would like to import, in the subdirectory 'libs' of your android project.

Your settings should look like this:

在此处输入图片说明

在此处输入图片说明

Important is to select 'Android Private Libraries' aswell as 'Android Dependencies'. The IDE will do everything else in order to import your library.

Note: You may have to restart Eclipse in order to take effect.

Make sure you have the same android.support.v4.app library for your library and in your project. Otherwise it will show mismatch errors.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM