简体   繁体   中英

How to properly set-up Java SDK for android with IntelliJ

I'm currently creating a simple Test activity that logs into facebook. I'm using the IntelliJ IDE. I've added the facebookSDK to my project and I've created a simple program. Problem is, I can't even compile the project. I get like 100 warnings and 3 errors:

问题

I did some research and it probably has something to do with missing dependencies. The facebook SDK can't find some packages. What am I missing/doing wrong?

I'd really appreciate some help!

It looks like you're missing the Android v4 Support Library Library . You have to download it in the SDK Manager and add it to your project.

To add it, go to Project Structure > Libraries and add the Library from your SDK (should be under %SDK_PATH%/extras/android/support/v4/ )

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