0% found this document useful (0 votes)
89 views2 pages

Android Studio BUGS and Solutions

The document discusses issues caused by using AndroidX dependencies without enabling the android.useAndroidX property. It recommends setting android.useAndroidX to true in gradle.properties to resolve runtime issues and errors.

Uploaded by

yikom vasu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
89 views2 pages

Android Studio BUGS and Solutions

The document discusses issues caused by using AndroidX dependencies without enabling the android.useAndroidX property. It recommends setting android.useAndroidX to true in gradle.properties to resolve runtime issues and errors.

Uploaded by

yikom vasu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

configuration `:app:debugruntimeclasspath` contains androidx dependencies,

but the `android.useandroidx` property is not enabled, which may cause runtime
issues.
set `android.useandroidx=true` in the `gradle.properties` file and retry.

Configuration app:debugRuntimeClasspath contains AndroidX dependencies, but the


android.useAndroidX property is not enabled, which may cause runtime issues.

Configuration app:debugRuntimeClasspath contains AndroidX dependencies, but the


android.useAndroidX

Android Studio 3.6.1 | Error: "This project uses AndroidX dependencies"

Add these line of code in Gradle.properties


android.useAndroidX=true
android.nonTransitiveRClass=true
android.enableJetifier=true

Error “package android.support.v7.app does not exist”


First of all check if your project is using androidx or android support library.
Check gradle.properties file:

android.useAndroidX=true

android.enableJetifier=true

If it contains the above lines, it is using androidx with an old code from some old
tutorial.

In build.gradle (module:app)

Use

implementation 'androidx.appcompat:appcompat:1.0.0'
Instead of

compile 'com.android.support:appcompat-v7:28.0.0'
Also in MainActivity.java : Use

import androidx.appcompat.app.AppCompatActivity;
instead of :

import android.support.v7.app.AppCompatActivity;

Could not identify launch activity: Default Activity not found Error while
Launching activity
Failed to launch an application on all devices

<activity
android:name=".MainActivity"
android:label="YourAppName"
android:theme="@style/AppTheme.NoActionBar" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />


</intent-filter>
</activity>

<activity
android:name=".MainActivity"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />

<category android:name="android.intent.category.LAUNCHER" />


</intent-filter>

You might also like