Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Android Implementing Designs for Android Customizing a ListView for the Inbox Adding a Swipe-to-Refresh Gesture

Euge Belenky
Euge Belenky
184 Points

Swipe-to-refresh / Facebook SDK / Android Studio - conflicts

Hi, I am using Android Studio and decided to expand the project with the Facebook SDK for user logins. Once I added the Facebook SDK - I started to get

UNEXPECTED TOP-LEVEL EXCEPTION: com.android.dex.DexException: Multiple dex files

I have 2 build gradels - 1. App and 2. FB that compile 'com.android.support:support-v13:21.0.0' Once I do the following exclude in the main app gradle I am able to compile and run the app, but Swipe-to-refresh is not working (error to inflate):

configurations { all*.exclude group: 'com.android.support', module: 'support-v4' }

If I don't exclude - I cannot run the app.

Any ideas, how to configure to run both FB sdk and Swipe-to-refresh?

Appreciated in advance!