hussien89aa / AndroidTutorialForBeginners

Step by step to build Android apps using Android Studio
https://www.udemy.com/android-tutorial-for-beginners/?couponCode=ANDORIDGITHUB
4.34k stars 6.1k forks source link

can you help me to resolve this #11

Open Gunjan9sahoo opened 4 years ago

Gunjan9sahoo commented 4 years ago

ERROR: Failed to resolve: com.android.support.appcompat-v7:28.0.0: Affected Modules: app

below is my gradle file

apply plugin: 'com.android.application'

android { compileSdkVersion 28 defaultConfig { applicationId "com.example.pa" minSdkVersion 23 targetSdkVersion 28 // useLibrary 'android.test.runner' // useLibrary 'android.test.base' // useLibrary 'android.test.mock' // buildToolsVersion '28.0.3' versionCode 1 versionName "3.4.2" // versionName "1.0" testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"

}
buildTypes {
    release {
        minifyEnabled false
        proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
    }
}

}

dependencies { implementation fileTree(dir: 'libs', include: ['*.jar']) compile 'com.android.support.appcompat-v7:28.0.0' implementation 'androidx.constraintlayout:constraintlayout:1.1.3' testImplementation 'junit:junit:4.12' implementation 'androidx.annotation:annotation:1.0.0' androidTestImplementation 'androidx.test:runner:1.1.0' androidTestImplementation 'androidx.test.espresso:espresso-core:3.1.0' implementation 'com.google.android.material:material:1.0.0' implementation 'com.android.support:support-v4:28.0.0' implementation 'com.google.firebase:firebase-core:17.0.0' implementation 'com.google.android.material:material:1.1.0-alpha07' } apply plugin: 'com.google.gms.google-services'

AyusPokhriyal-18 commented 4 years ago

Try this in your Dependencies: compile 'com.android.support.appcompat-v7:28.0.0.+'