Stop Android Studio from using Support Library

Stop Android Studio from using Support Library 28
android support library download
android support library 28
androidx support library
com android support design 28 androidx
how to add support library in android studio
com android support appcompat-v7:28

I'm trying to get my Android project in Android Studio to NOT use the Support library. My issue is that when I use fragments it is expecting support fragments and causing the app to crash.

My Min SDK is 14 and my Target SDK is 19. My understanding is that because I'm targeting these versions I should not need the support library. Correct me if I'm wrong.

I'm trying to correct this error java.lang.ClassCastException: cannot be cast to And I am aware I can fix it by just using SupportMapFragment instead. But I do not want to do this. I want to use the regular MapFragment

So my main question is how can I get it to stop expecting support library fragments and just use regular fragments. I've also had this issue with other fragments not just the map.

If you've removed the support library from the build.gradle, and there's no file in the libs folder, have you made sure to delete the imports?

From the error message, it looks like you'll have the following import (else the error wouldn't know about trying to cast to a support Fragments) at the top of your class:


Delete this, replace it with:


Do this with all the support references.

Support Library Revision Archive, Find out about current known issues with Android Studio and the Android Gradle Plugin. Create an Android library � Set up continuous integration In some scenarios, the IDE stops responding to keyboard input or starts JAR signing (v1 scheme) does not support file names containing Carriage Return (CR) characters . Note: With the release of Android 9.0 (API level 28) there is a new version of the support library called AndroidX which is part of Jetpack. The AndroidX library contains the existing support library and also includes the latest Jetpack components. You can continue to use the support library.

I'm surprised no one can still give you a straight forward answer. I hope my response will help.

So to stop Android Studio from using support library especially the infamous AppCompat v7, follow these few steps:

1) Gradle Scripts > build.gradle(Module: app)

2) Remove the line that says compile ''

3) res/values/styles.xml > change the parent value to: parent="@android:style/Theme.Holo.Light"

4) AndroidManifest.xml > change the application android:theme to: android:theme="@android:style/Theme.Holo.Light"

5) Go into your activities and remove the line that imports the support library. Change it to: import;

6) Now in the menu bar: Build > ReBuild Project. Correct any errors then keep rebuilding until you get it to work, then run your project to ensure nothing crashes and your references are in order.

For me I got errors stating that I app:ShowAsAction is not supported or so. I had to change it to android:ShowAsAction. Just Make sure that for any error, you read it carefully and follow the suggestions in the little dialogues boxes that pop up beside the error line.

Recent Support Library Revisions, Windows: Android Studio uses the primary display's DPI settings to open the task manager and attempt to kill processes that may be using the file, If you are using an obsolete version of the Android Support Libraries, you� The Android Support library helps to reduce the headache of developers by providing backward compatibility. Users also feel fresh and happy with their old device. There is no complexity in adding support library in Android Studio. You can do it in simple steps. I assume the above words might have helped you.

To completly remove the suppport library, go to the package explorer window, and in

your project name -> libs

remove the android-support-v4.jar. If you do that, remove all imports startng with and replace them with apropriate (non support) imports.

Known issues with Android Studio and Android Gradle Plugin, You should include support for the SplitCompat library in your manifest, instead use android.bundle to disable types of configuration APKs. Posted by Ian Lake, Developer Advocate. With the release of the 25.1.0 Support Library, there's a new entry in the family: the ExifInterface Support Library. With significant improvements introduced in Android 7.1 to the framework's ExifInterface, it only made sense to make those available to all API 9+ devices via the Support Library's ExifInterface.

You can add this code to app gradle file to avoid using support v4 lib

android {
configurations.all {   //this piece is important to avoid duplicates
        exclude group: '',
                module: 'support-v4'

Troubleshoot Android Studio, APK v4 signing allows you to quickly deploy large APKs using the ADB Incremental APK Android Studio now includes additional support for previewing and testing apps that use To stop, click the Stop Interactive Preview in the top toolbar. After you download the Android Support Libraries, this library adds support for the GridLayout class, which allows you to arrange user interface elements using a grid of rectangular cells. For detailed information about the v7 gridlayout library APIs, see the package in the API reference.

Configure the base module, On your device, under Settings > Developer options, disable the following 3 settings: Window Android Studio creates tests by default in� Double-click the Xamarin.Android.Support.v4 assembly under the References section of the Android project in Visual Studio for Mac to open the assembly in the Assembly Browser. Ensure that the Language drop-down is set to C# and select the top-level Xamarin.Android.Support.v4 assembly from the Assembly

New features in Android Studio Preview, For example, you can use Android Studio with the Gradle build files to compile, sign, Important: Ensure that you disable debugging for your app if using with older versions of Android by adding the Support Library to your� Select File > Settings (or Android Studio > Preferences on macOS). On the left of the window, navigate to Appearance & Behavior > Menus and Toolbars. On the right side of the window, navigate to Main Toolbar > Toolbar Run Actions and select Run/Debug. Near the top of the window, click Revert. and select Restore Run/Debug.

Espresso setup instructions, You can access the library through the package. To start a code inspection from Android Studio, which includes conflicts generate warnings, these warnings do not prevent your app from� Using this method ensures that your app will remain compatible with new Android versions as well as existing versions. Easier alternative: Use the Support Library. If the Support Libraries are used, often there are static helper methods to accomplish the same task with less client code. Instead of the if/else block above, just use: