im getting error in Visual Studio Code.
[{
"resource": "/c:/Users/ram/vstoredeal_seller/android/app/build.gradle",
"owner": "_generated_diagnostic_collection_name_#6",
"code": "0",
"severity": 8,
"message": "The supplied phased action failed with an exception.\r\nA problem occurred configuring project ':app'.\r\nBuild file 'C:\\Users\\ram\\vstoredeal_seller\\android\\app\\build.gradle' line: 2\r\nPlugin [id: 'com.android.application'] was not found in any of the following sources:\r\n- Gradle Core Plugins (plugin is not in 'org.gradle' namespace)\r\n- Plugin Repositories (plugin dependency must include a version number for this source)\r\nPlugin [id: 'com.android.application'] was not found in any of the following sources:\r\n- Gradle Core Plugins (plugin is not in 'org.gradle' namespace)\r\n- Plugin Repositories (plugin dependency must include a version number for this source)",
"source": "Java",
"startLineNumber": 2,
"startColumn": 1,
"endLineNumber": 2,
"endColumn": 1
}]
build.gradle(app):
plugins {
id 'com.android.application'
id 'com.android.library'
id 'kotlin-android'
id 'dev.flutter.flutter-gradle-plugin'
id 'com.google.gms.google-services'
}
def localProperties = new Properties()
def localPropertiesFile = rootProject.file('local.properties')
if (localPropertiesFile.exists()) {
localPropertiesFile.withReader('UTF-8') { reader ->
localProperties.load(reader)
}
}
def flutterVersionCode = localProperties.getProperty('flutter.versionCode')
if (flutterVersionCode == null) {
flutterVersionCode = '1'
}
def flutterVersionName = localProperties.getProperty('flutter.versionName')
if (flutterVersionName == null) {
flutterVersionName = '1.0'
}
android {
namespace "com.vstoredeal.seller_in"
compileSdkVersion 34
ndkVersion '23.1.7779620'
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = "1.8"
}
allprojects {
tasks.withType(JavaCompile).tap {
configureEach {
options.compilerArgs << "-Xlint:deprecation"
}
}
}
buildToolsVersion "34.0.0"
defaultConfig {
applicationId "com.vstoredeal.seller_in"
minSdkVersion 23
targetSdkVersion flutter.targetSdkVersion
versionCode flutterVersionCode.toInteger()
versionName flutterVersionName
multiDexEnabled true
}
buildTypes {
release {
signingConfig signingConfigs.debug
}
}
}
flutter {
source '../..'
}
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version"
implementation 'androidx.appcompat:appcompat:1.7.0'
implementation 'com.google.android.material:material:1.12.0'
implementation 'androidx.activity:activity-ktx:1.9.0'
implementation 'androidx.constraintlayout:constraintlayout:2.1.4'
implementation 'androidx.core:core-splashscreen:1.0.1'
implementation 'androidx.annotation:annotation:1.8.0'
implementation 'io.flutter:flutter_embedding_debug:1.0.0'
testImplementation 'junit:junit:4.13.2'
androidTestImplementation 'androidx.test.ext:junit:1.1.5'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.5.1'
implementation 'androidx.multidex:multidex:2.0.1'
}