All Questions

55
votes
16answers
36982 views

Failed to resolve: com.android.support:cardview-v7:26.0.0 android

i try to add recyclerview to my project and get this error appear and i added it from android studio dependencies
182
votes
21answers
122670 views

Multiple dex files define Landroid/support/v4/accessibilityservice/AccessibilityServiceInfoCompat

If I run gradle assembleDebug from the command line, I am suddenly getting this error: UNEXPECTED TOP-LEVEL EXCEPTION: com.android.dx.util.DexException: Multiple dex files define Landroid/support/v4/...
358
votes
14answers
365225 views

appcompat-v7:21.0.0': No resource found that matches the given name: attr 'android:actionModeShareDrawable'

When attempting to use the latest appcompat-v7 support library in my project, I get the following error: /Users/greg/dev/mobile/android_project/app/build/intermediates/exploded-aar/com.android.suppor...
96
votes
16answers
208291 views

java.util.zip.ZipException: duplicate entry during packageAllDebugClassesForMultiDex

I am not sure what this error means. Execution failed for task ':excelSior:packageAllDebugClassesForMultiDex'. > java.util.zip.ZipException: duplicate entry: android/support/v4/util/TimeUtils.cla...
122
votes
4answers
59683 views

NavigationView get/find header layout

In my NavigationView I have a header layout with id 'viewId' with active buttons. To setup those buttons, I do the following in activity's onPostCreate: final View panel = findViewById(R.id.viewId); ...
67
votes
7answers
37477 views

DexIndexOverflowException issue after updating to latest appcompat and support library

I'm using the below settings through gradle: compileSdkVersion 21 ANDROID_BUILD_MIN_SDK_VERSION=14 ANDROID_BUILD_TARGET_SDK_VERSION=21 ANDROID_BUILD_TOOLS_VERSION=21.0.2 ANDROID_BUILD_SDK_VERSION=21 ...
22
votes
6answers
17251 views

Failed to resolve com.google.android.gms play-services-auth:11.4.0

I am trying to write code for Android FirebaseUI — Auth in my android project but from last two days, I am getting errors in my current code and don't know how to fix it. trying hard but nothing hap...
80
votes
8answers
50043 views

ViewPager.setOffscreenPageLimit(0) doesn't work as expected

The fragments I use in my ViewPager instance are quite resource intensive, so I'd only like to load one at a time. When I try the following: mViewPager.setOffscreenPageLimit(0); mViewPager.setAdapter...
162
votes
14answers
84267 views

Nested Recycler view height doesn't wrap its content

I have an application that manage collections of books (like playlists). I want to display a list of collection with a vertical RecyclerView and inside each row, a list of book in an horizontal Recyc...
114
votes
3answers
152575 views

FloatingActionButton example with Support Library

Recently, I read these posts: Android Design Support Library Android Support Library, revision 22.2.0 FloatingActionButton But, none of them give me a detail example about creating a new FloatingA...

Previous Next