I was working on fragments and came across two things Activity and FragmentActivity which are used several times. I want to know that is there any difference between these two, because when I changed Activity with FragmentActivity, it had no effect on the app.
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 RecyclerView. When i set the layout_height of the inner horizontal RecyclerView to 300dp, it is displayed correctly but when i set […]
After upgrading to API 22 and support lib revision 22 I’m getting the following warning: Warning:Conflict with dependency ‘com.android.support:support-annotations’. Resolved versions for app (22.0.0) and test app (21.0.3) differ. Gradle itself is more forgiving, but Android Studio, not so much. I have no dependencies declared with 21.0.3 … is one of the dependent libraries using […]
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/accessibilityservice/AccessibilityServiceInfoCompat$AccessibilityServiceInfoVersionImpl; at com.android.dx.merge.DexMerger.readSortableTypes(DexMerger.java:592) at com.android.dx.merge.DexMerger.getSortedTypes(DexMerger.java:550) at com.android.dx.merge.DexMerger.mergeClassDefs(DexMerger.java:531) at com.android.dx.merge.DexMerger.mergeDexBuffers(DexMerger.java:168) at com.android.dx.merge.DexMerger.merge(DexMerger.java:186) at com.android.dx.command.dexer.Main.mergeLibraryDexBuffers(Main.java:300) at com.android.dx.command.dexer.Main.run(Main.java:232) at com.android.dx.command.dexer.Main.main(Main.java:174) at com.android.dx.command.Main.main(Main.java:91) If I grep for v4 I see two files inside my build folder. […]
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.support/appcompat-v7/21.0.0/res/values-v11/values.xml Error:(36, 21) No resource found that matches the given name: attr ‘android:actionModeShareDrawable’. Error:(36, 21) No resource found that matches the given name: attr ‘android:actionModeShareDrawable’. Error:(36, 21) No resource found that matches the given name: attr ‘android:actionModeShareDrawable’. Error:(36, […]