Я импортировал приложение в Andriod studio (новейшая версия andriod studio), и я попробовал все, что угодно: удалить и установить JDK снова, повторно применить для каждой библиотеки, обновить менеджер SDK, код до 5-6 лет go, поэтому сейчас я пытаюсь обновить Gradle, и я не могу решить эту проблему.
build.gradle (modules: app)
apply plugin: 'com.android.application'
android {
compileSdkVersion 16
buildToolsVersion "29.0.2"
defaultConfig {
applicationId "com.App"
minSdkVersion 11
targetSdkVersion 29
}compile
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.txt'
}
}
compileOptions {
sourceCompatibility = 1.8
targetCompatibility = 1.8
}
compileSdkVersion = 29
}
dependencies {
implementation files('libs/asmack-issue-13.jar')
implementation files('libs/gcm.jar')
implementation files('libs/gson-1.7.1.jar')
implementation files('libs/httpmime-4.1-beta1.jar')
implementation files('libs/mediationsdk-6.4.17.jar')
implementation files('libs/PayPalAndroidSDK.jar')
}
Gradle-wrapper. Propertis
#Mon Jan 27 05:34:23 GST 2020
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.4.1-all.zip
Project Gradle
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.5.1'
}
}
allprojects {
repositories {
google()
jcenter()
}
}
Ошибка
Total time: 12.797 secs
ERROR: Gradle DSL method not found: 'google()'
Possible causes:
The project 'App_copy' may be using a version of the Android Gradle plug-in that does not contain the method (e.g. 'testCompile' was added in 1.1.0).
Upgrade plugin to version 3.5.1 and sync project
The project 'App_copy' may be using a version of Gradle that does not contain the method.
Open Gradle wrapper file
The build file may be missing a Gradle plugin.
Apply Gradle plugin