dexDebug problem with WatchFace sample

Opened sample app WatchFace in Android Studio. When try to run build fails saying:
Unexpected top-level exception … Multiple dex files
Execution failed for task ‘:Application:dexDebug’

Found that in 2 build.gradle files (wearable & application modules) there were references to 2 versions of same file:

compile ‘com.google.android.gms:play-services-fitness:8.3.0’
compile ‘com.google.android.gms:play-services-wearable:8.4.0’

Changed so all references are to 8.4.0 and build now works.

This entry was posted in Android. Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *