虽然我有一个更新的android,但我在gradle文件夹中找不到gradle 4.1,但是当我检查文件->项目结构-> gradle插件是4时,我得到了以下错误。
Error:Could not find com.android.tools.build:gradle:4.1.
Searched in the following locations:
file:/C:/Program Files/Android/Android Studio/gradle/m2repository/com/android/tools/build/gradle/4.1/gradle-4.1.pom
f
这是我的build.gradle文件:
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
jcenter()
google()
}
dependencies {
classpath 'com.android.tools.build:gradle:4.1'
// NOTE: Do
我使用的是Android 4.1版本,在代理服务器后面。我已经设置了代理设置,sdk下载工作正常。但是当我创建一个新的项目时,它抛出了错误:
Could not GET 'https://dl.google.com/dl/android/maven2/com/android/tools/build/gradle/4.1.0/gradle-4.1.0.pom'. Received status code 407 from server: Proxy Authentication Required
禁用Gradle‘脱机模式’并同步项目
在设置中搜索Gradle Offline时,
我有一个android项目,需要使用gradle 3.0以下的版本。但是我下载了android studio 3.0,它说gradle的最小版本是4.1。将根项目的gradle 2.14.1和build.gradle设置为
classpath 'com.android.tools.build:gradle:2.0.0'
但是错误显示
Error:(1, 0) Minimum supported Gradle version is 4.1. Current version is 2.14.1. If using the gradle wrapper, try editing th
在构建发布版本时遇到此无用的错误消息:
Execution failed for task ':app:processProductionReleaseMetadata'.
> The value for this property cannot be changed any further.
--就是这样,这就是整个错误信息。注意到这里的“生产”是productFlavor,而"Release“是构建类型。(我清空了productFlavor和buildType的配置,因此这些块是空的,并且仍然会出现这个错误)(开发人员构建的正在运行良好的尝试,清理/使缓存无效
我已经开发了几个月的flutter移动应用程序,一切都很好。我刚回到项目中,一些东西(flutter,dart,android studio等)升级了。现在我无法编译我的应用程序。我创建了一个新的flutter应用程序(默认示例),但它也无法编译。 我得到的错误是: FAILURE: Build failed with an exception.
* What went wrong:
Could not open settings remapped class cache for bq3hllkgb26p0nrblf5gh8d37 (C:\Users\Paul\.gradle\caches
由于的字符限制,我在Github上发布了同样的问题,包含了详细的操作信息。
颤振突然跑错了,这在几天前还是正常的,这段时间我没有做任何改变。
FAILURE: Build failed with an exception.
* What went wrong:
Unable to start the daemon process.
This problem might be caused by incorrect configuration of the daemon.
For example, an unrecognized jvm option is used.
Please refer
今天,我的团队中的多个开发人员在尝试运行Gradle任务时发现了这个错误。
* Where:
Build file 'C:\dev\src\my_app_name\app\build.gradle' line: 1
* What went wrong:
A problem occurred evaluating project ':app'.
> Failed to apply plugin [id 'com.android.application']
> Minimum supported Gradle version is
我的android工作室版本来自Help > About
Android Studio 3.3.1
Build #AI-182.5107.16.33.5264788, built on January 29, 2019
JRE: 1.8.0_152-release-1248-b01 amd64
JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
Linux 5.0.5-arch1-1-ARCH
build.gradle
buildscript {
repositories {
jcenter()
mav
在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 {
我想在第一次运行模拟器之前,在不改变AGP版本和Gradle版本的情况下启动一个新的颤振项目,颤振医生输出:
Doctor summary (to see all details, run flutter doctor -v):
[√] Flutter (Channel stable, 2.10.0, on Microsoft Windows [versão 10.0.19043.1466], locale pt-BR)
[√] Android toolchain - develop for Android devices (Android SDK version 32.1.0-rc1)
[
我有一个在Eclipse中开发的旧应用程序,现在正在尝试将其迁移到Android Studio。
我更新了库并遵循了基本步骤。
现在,我得到了这个错误:Error: Project 'app' not found in root project 'projectName'.
我使用的是classpath 'com.android.tools.build:gradle:3.0.1'和最新的Gradle4.1。
有人能帮上忙吗?
Could not find com.android.tools.build:gradle:4.1.
Searched in the following locations:
https://jcenter.bintray.com/com/android/tools/build/gradle/4.1/gradle-4.1.pom
https://jcenter.bintray.com/com/android/tools/build/gradle/4.1/gradle-4.1.jar
https://dl.google.com/dl/android/maven2/com/android/too
大家好,我把我的android studio 4.0更新到了4.1 更新android studio build.gradle后出现错误。我试着完全卸载android studio,但再次不起作用 日志 Unable to start the daemon process.
This problem might be caused by incorrect configuration of the daemon.
For example, an unrecognized jvm option is used.
Please refer to the User Manual chapter o
我试着在android studio中运行一段基本代码。但它显示了错误。但同样的代码在flutlab.io上成功编译 以下是错误消息。 Running Gradle task 'assembleDebug'...
FAILURE: Build failed with an exception.
* What went wrong:
Could not open settings generic class cache for settings file 'C:\Users\HP\AndroidStudioProjects\helloapp\android\sett
我使用的是Android Studio 3.0.1,我已经将Gradle插件从4.1更新到4.4,并尝试将android插件Gradle从3.0.1升级到3.1.3。问题是AS无法更新android插件,并给了我这个错误。
Error:Could not find com.android.tools.build:gradle:3.1.3.
Searched in the following locations:
file:/F:/android studio/gradle/m2repository/com/android/tools/build/gradle/3.1.3/gradle-3.1.
在升级到Android Studio3.0/ Gradle 4.1之后,我发现我不能再为Android Studio中的Appengine模块运行jUnit测试。gradle控制台报告:
Class not found: "com.example.test.PackageName"Empty test suite.
这个类文件是在我从Android studio运行时生成的,并且我仍然可以从命令行运行测试。
我怀疑这个问题与我从命令行运行时看到的这个日志行有关:
setTestClassesDir(File) method has been deprecated and is
我正面临着一个关于图书馆的问题。当我更新到Android studio到4.1和Gradle到6.5时,我得到了如下异常 Caused by: java.lang.AssertionError
at org.jivesoftware.smack.AbstractXMPPConnection.sendStanza(AbstractXMPPConnection.java:686)
at com.app.modules.rnxmpp.service.XmppServiceSmackImpl.sendStanza(XmppServiceSmackImpl.java:713)
当我建造gradle的时候,我得到了这样的信息:
API 'BaseVariant.getApplicationIdTextResource' is obsolete and has been replaced with 'VariantProperties.applicationId'
我用的是Android Studio 4.1 Canary 10和gradle:4.1.0-alpha10
在使用Eclipse几年之后,我决定更新自己,在我的新PC上安装和使用Android Studio。首先,在安装了JDK和JRE之后,我从Google Android官网下载了Android Studio 3.6。在安装了android studio和SDK之后,我决定运行Android studio start向导来生成一个简单的单活动项目来测试它,然后问题就开始了。我收到以下文本的错误:
org.gradle.api.internal.artifacts.ivyservice.DefaultLenientConfiguration$ArtifactResolveException: Cou
我安装了Android Studio和Flutter。“颤动医生”说一切都好。但当我运行我的第一个应用程序时,它出现了以下错误:
Launching lib\main.dart on AOSP on IA Emulator in debug mode...
Running Gradle task 'assembleDebug'...
FAILURE: Build failed with an exception.
* What went wrong:
Could not open settings generic class cache for settings file
我正在通过Ionic 4框架使用Apache Cordova,最近将我的Android Studio更新到Android Studio 3.5。当我运行ionic cordova build android时,我现在得到以下错误:
Could not find an installed version of Gradle either in Android Studio,
or on your system to install the gradle wrapper. Please include gradle
in your path, or install Android Studio