[英]Bumblebee Android studio Plugin [id: 'com.android.application', version: '7.1.0', apply: false] was not found in any of the following sources:
[英]Plugin [id: 'com.android.application', version: '7.2.0', apply: false] was not found in any of the following sources
请协助,我是 android studio 的新手,之前提出的问题中提供的解决方案都没有对我有用。 我不断收到错误:
Gradle 同步失败:插件 [id: 'com.android.application', version: '7.2.0', apply: false] 在以下任何来源中均未找到:
这是我的 gradle-wrapper.properties:
distributionBase=GRADLE_USER_HOME
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-bin.zip
distributionPath=wrapper/dists
zipStorePath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
设置.gradle
pluginManagement {
repositories {
//maven { url "https://plugins.gradle.org/m2/" }
gradlePluginPortal()
google()
mavenCentral()
}
}
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
}
}
rootProject.name = "projectname"
include ':app'
项目build.gradle
plugins {
id 'com.android.application' version '7.2.0' apply false
id 'com.android.library' version '7.2.0' apply false
id 'org.jetbrains.kotlin.android' version '1.5.31' apply false
}
task clean(type: Delete) {
delete rootProject.buildDir
}
构建.gradle
plugins {
id 'com.android.application'
id 'org.jetbrains.kotlin.android'
id 'org.jetbrains.kotlin.android.extensions'
}
android {
compileSdk 31
defaultConfig {
applicationId "com.tdsoft.limabot"
minSdk 21
targetSdk 31
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
kotlinOptions {
jvmTarget = '1.8'
}
}
dependencies
{
}
我已将 java(JDK-18.0.0.1) 添加到环境变量的路径中,并且我在 android studio Gradle JDK 中的等级设置为嵌入式 JDK 版本 11.0.12。 我将不胜感激任何形式的帮助。
编辑:不幸的是,更改项目构建版本并没有解决问题。
尝试在项目级别build.gradle
版本从 7.2.0 更改为 7.2.1
id 'com.android.application' version '7.2.1' apply false
id 'com.android.library' version '7.2.1' apply false
我也有这个问题,请有人帮助我们::。 我的错误。 插件 [id, 'com:android.application'。 version, '7:3:0', apply: false] 在以下任何来源中都找不到:
我的项目 gradle.build
plugins {
id 'com.android.application' version '7.3.0' apply false
id 'com.android.library' version '7.3.0' apply false
}
task clean(type: Delete) {
delete rootProject.buildDir
}
我的 gradle-wrapper.properties:
#Tue Sep 27 15:56:49 IRST 2022
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStorePath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-all.zip
我遇到了同样的问题。 我尝试了什么:
这些都对我没有帮助,我安装了一个代理程序,可以包装计算机上各个应用程序的流量,并且它起作用了。 这是一个 Proxyfire 程序——它有一个 30 天的免费版本。 在我的案例中访问谷歌服务的问题与本地限制有关。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.