Make sure your build.gradle is
apply plugin: 'com.android.application'
not
apply plugin: 'com.android.library'
After you have changed, please sync your gradle again.
More Related Contents:
- Android Studio / kotlin
- I am having problems in android studio configuration can any help me?
- Rename package in Android Studio
- Android Studio shows wrong file contents
- Where to place the ‘assets’ folder in Android Studio?
- Android studio 3.0: Unable to resolve dependency for :app@dexOptions/compileClasspath’: Could not resolve project :animators
- How to project clean in Android Studio?
- Code formatting shortcuts in Android Studio for Operation Systems
- Error:Conflict with dependency ‘com.google.code.findbugs:jsr305’
- Android Studio 0.8.1 – how to use Facebook SDK?
- Build Android Studio app via command line
- Playstore error: App Bundle contains native code, and you’ve not uploaded debug symbols
- Proguard ignores config file of library
- How to set Java SDK path in AndroidStudio?
- Sources for Android API 23 Platform not found (Android Studio 2.0)
- Android Studio strange code sub-windows after upgrade to Arctic Fox (2020.3.1)
- Gradle finished with non-zero exit value 1 (ic_launcher.png: error: Duplicate file)
- Where are Gradle logs?
- Android Studio inline compiler showing red errors, but compilation with gradle works fine
- Android Studio 3.0 – No server to serve request
- Error running android: Gradle project sync failed. Please fix your project and try again
- How to auto import the necessary classes in Android Studio with shortcut?
- Search all the occurrences of a string in the entire project in Android Studio
- Android Studio recognizes physical Device as Null?
- Android Studio – How to open multiple project in single window?
- How to automatically generate getters and setters in Android Studio
- Android Studio – no debuggable applications
- How to set gradle home while importing existing project in Android studio
- How to import .AAR module on Android Studio 4.2
- Steps to get SignalR working in Android Studio