由于某种原因,自从我将Android Studio更新到4.1版以来,每当我尝试运行模拟器时,我都会收到这个错误: Error while waiting for device: The emulator process for AVD Pixel_2_API_29 was killed. 我尝试过重新安装android studio,冷启动设备,以及我能想到的所有东西。
当我在Android Studio上按下按钮时,颤动工具不会启动,当我使用flutter run时,我也会得到一个警告。
我尝试过flutter clean,但在终端和Android Studio flutter插件上仍然会发生这种情况。
flutter doctor输出:
Doctor summary (to see all details, run flutter doctor -v):
[✓] Flutter (Channel stable, 2.0.2, on macOS 11.2.3 20D91 darwin-x64, locale
en-GB)
[✓] Andro
我有一个在Eclipse中开发的旧应用程序,现在正在尝试将其迁移到Android Studio。
我更新了库并遵循了基本步骤。
现在,我得到了这个错误:Error: Project 'app' not found in root project 'projectName'.
我使用的是classpath 'com.android.tools.build:gradle:3.0.1'和最新的Gradle4.1。
有人能帮上忙吗?
你好,我在mac上更新我的mac
Android Studio 4.1
Build #AI-201.8743.12.41.6858069, built on September 23, 2020
Runtime version: 1.8.0_242-release-1644-b3-6222593 x86_64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
macOS 10.15.7
GC: ParNew, ConcurrentMarkSweep
Memory: 2014M
Cores: 4
Registry: ide.new.welcome.s
虽然我有一个更新的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
我使用的是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时,
我用得很好,没有任何问题。当我导入通过github下载的项目时。在解决了一些构建问题之后,我成功地运行了这个程序,但是它引起了AS的问题,我已经有力地关闭了它。当我重新启动它时,首先弹出这个错误。
cannot start internal http server. git integration, javascript debugger and liveedit may operate with errors. please check your firewall settings and restart android studio
然后我搜索并找到了一些我尝试过的解决方案:
禁用防病
在更新到Android studio 3.6Debug (macOS)之后,我既不能运行也不能运行我的项目的Canary11变体(发布的变体工作正常)。
当我尝试运行这个项目时,我得到了错误:
A failure occurred while executing com.android.build.gradle.internal.tasks.Workers$ActionFacade
> Entry name 'firebase-abt.properties' collided
但是当我删除构建目录(rm -rf应用程序/构建)时,我可以运行/debug项目一次。在第一
## flutter doctor
[✓] Flutter (Channel beta, 1.19.0-4.1.pre, on Microsoft Windows [Version 10.0.10240], locale en-US)
• Flutter version 1.19.0-4.1.pre at D:\fluttersetup\flutter_windows_v1.12.13+hotfix.9-stable\flutter
• Framework revision f994b76974 (11 days ago), 2020-06-09 15:53:13 -0700
这是我的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