I want to add an Action Bar to my app. And there is a problem appearing
error: package android.support.v7.widget does not exist
.
I cannot fix that problem whatever i tried. Any solution on internet does not work on me.I do not know why this is happening and i am really tired of it. I am the beginner and this problem drives me crazy.I've tried to change
android.useAndroidX=true
--> to false
and
android.enableJetifier=true
--> false on gradle.properties
Yeah, its work!But here is another problem appearing:
java.lang.RuntimeException: Manifest merger failed : Attribute application@appComponentFactory value=(android.support.v4.app.CoreComponentFactory) from [com.android.support:support-compat:28.0.0] AndroidManifest.xml:22:18-91
Here is my build.gradle:
compileSdkVersion 29
buildToolsVersion '29.0.1'
minSdkVersion 21
targetSdkVersion 29
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'androidx.appcompat:appcompat:1.1.0-rc01'
implementation 'androidx.constraintlayout:constraintlayout:2.0.0-beta2'
implementation 'com.google.android.material:material:1.1.0-alpha07'
testİmplementation 'junit:junit:4.13-beta-3'
androidTestİmplementation 'androidx.test:runner:1.3.0-alpha01'
androidTestİmplementation 'androidx.test.espresso:espresso-core:3.3.0-alpha01'
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support:support-v4:28.0.0'
implementation 'com.android.support:support-v13:28.0.0'
}
Could be problem on implementation methods, i do not know. May be i have a problem on SDK versions. I have tried migrate to AndroidX and not worked.