在Android Studio3.0Beta 1中,我需要使用Gradle 4.1-rc-1。我主动提出要为我做更新(为什么不),但当项目尝试构建时,我收到一个错误,显示gradle-4.1-rc-1的pom和jar。它显然不在jcenter或google repos中。在上,他们提到这是一个已知的错误,干净和同步应该可以修复它,但它对我不起作用。
这是我的构建文件:
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
从最近开始,在android studio中同步依赖项时,gradle开始在从Jitpack加载的存储库中抛出此错误。这是一个示例,在使缓存无效并重新加载之后,这只是我依赖列表中的第一个Jitpack库-
Could not determine artifacts for com.github.florent37:singledateandtimepicker:v1.2.0:
Skipped due to earlier error
我尝试更新库的版本,尝试首先恢复,然后更新我的gradle版本和gradle构建工具。我已经更新了android studio和android构建工具。使缓存无
出于某种原因,我理解了这个问题(昨天的构建工作还不错):
当我运行npx react-native run-android时
我明白:
Error: Command failed: ./gradlew app:installDebug -PreactNativeDevServerPort=8081
Execution failed for task ':expo-modules-core:compileDebugKotlin'.
在终点站我也看到:
Class 'kotlin.Unit' was compiled with an incompatible ver
由于以下错误,无法使用Android 4.2构建新项目:
A problem occurred configuring root project 'My Application'.
> Could not resolve all artifacts for configuration ':classpath'.
> Could not find org.jetbrains.kotlin:kotlin-gradle-plugin:1.5.0-release-764.
Searched in the following locations
当将android更新为3.3rc 1并构建该项目(在以前版本的android中完美运行)时,它将向我显示以下错误:
ERROR: The Android Gradle plugin supports only Kotlin Gradle plugin version 1.3.0 and higher.
The following dependencies do not satisfy the required version:
root project 'GPS_Speedometer_material' -> org.jetbrains.kotlin:kotlin-g
构建失败,并显示“computeFrames选项不支持JSR/RET”,
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext.kotlin_version = "1.5.0"
repositories {
google()
mavenCentral()
}
dependencies {
classpath
当我执行分级同步时,它说构建成功,但当我试图使项目失败时,会出现以下错误:
Could not GET 'http://dl.bintray.com/jlmd/maven/org/jetbrains/kotlin/kotlin-annotation-processing-gradle/1.4.21/kotlin-annotation-processing-gradle-1.4.21.pom'. Received status code 502 from server: Bad Gateway
我的等级:
// Top-level build file where you can
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext.kotlin_version = '1.1.3-2'
repositories {
google()
jcenter()
}
}
dependencies {
classpath 'com.android.tools.build:gradle:3.0.0-alpha3
当我运行我的项目时会出现此错误:
无法编译生成文件'H:\StartActivity\build.gradle'。
启动失败:构建文件‘H:\StartActivity\build.gradle’28:只有buildscript {}和其他插件{}脚本块在插件{}块之前被允许,不允许其他语句
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext.kotlin_ver
我在Bitbucket CI服务器上构建失败:
> Could not resolve all artifacts for configuration ':classpath'.
> Could not find aapt2-proto.jar (com.android.tools.build:aapt2-proto:0.3.1).
Searched in the following locations:
https://jcenter.bintray.com/com/android/tools/build/aapt2-proto/
Kotlin 1.5.0
当我试图构建我的安卓应用程序时,我遇到了一个错误,因为我把kotlin版本撞到了1.5.0上。
我认为这与拥有一个打包类和使用no插件有关。
我有以下课程
import android.os.Parcelable
import kotlinx.parcelize.Parcelize
sealed class CDSAppbarProfile(
val count: Int
) : Parcelable {
@Parcelize
class User(
val origincount: Int,
val imag
我无法在android模拟器中运行我的应用程序。它以前是工作的,但有什么东西把它弄坏了。 错误消息: A problem occurred evaluating root project 'android'.
> Could not find method implementation() for arguments [com.google.android.material:material:1.1.0] on object of type org.gradle.api.internal.artifacts.dsl.dependencies.DefaultDepende
我按照在firestore中注册我的移动应用程序的步骤操作,但是当我尝试运行代码时,我得到了以下错误。在注册我的应用程序时,我从firestore下载了google services.json,并将其添加到我的项目的android/app级别。我还在我的android/app/build gradle文件中添加了'com.google.firebase:firebase-analytics-ktx‘ FAILURE: Build failed with an exception.
* What went wrong:
Could not determine the dependen
我正在尝试从flutter项目构建一个新的安卓apk,minSdkVersion是19,成功地生成了apk,但并不是所有的安卓设备都能工作,一些设备可以使用minSdkVersion 16,所以当我将mindsVersion更改为16时,我无法生成它,因为我仍然得到一个错误的uses-sdk:minSdkVersion 16 cannot be smaller than version 19 declared in library [com.google.firebase:firebase-core:20.0.0]
我正在尝试降级Firebase核心,但我不能,仍然可以得到这个输出。
这是我的
所以我把我的安卓工作室版本从海豚升级到了最新版本(鳗鱼)
build.gradle (项目)只包含插件(没有构建脚本、存储库和依赖项):
plugins {
id 'com.android.application' version '7.2.2' apply false
id 'com.android.library' version '7.2.2' apply false
id 'org.jetbrains.kotlin.android' version '1.7.10'
我目前在尝试导入android studio项目时遇到一些问题。 最初,在导入项目时,我遇到了以下问题: Unable to get Gradle wrapper properties from: C:\Users\user\Downloads\topic 6.3\topic6\gradle\wrapper\gradle-wrapper.properties 我点击"OK“来创建文件和项目加载。然后我试着构建这个项目,但是我遇到了: ERROR: Plugin with id 'com.android.application' not found. 原始gradle文