我刚刚将 Android Studio 更新到最新版本 4.2.1,模拟器停止工作。每次我尝试启动一个新的虚拟设备时它都会崩溃并且 AVD Manager 会显示这个错误:
“AVD Pixel_C_API_30 的模拟器进程被杀死”
这是我迄今为止尝试过的:
冷启动重启。
在 AVD 管理器中删除并重新创建虚拟设备。
删除并重新安装模拟器 SDK 包(版本 30.7.4)
退出并重新启动 Android Studio 以及模拟器。
从头开始创建一个新的虚拟设备。
尝试了几种不同的虚拟设备。
以上所有给了我相同的确切结果:模拟器崩溃并且 AVD 管理器向我显示了上面的错误。
这是我从 MacOS 得到的错误(只是它的摘录):
Process: qemu-system-x86_64 [25489]
Path: /Applications/AndroidSDK/*/qemu-system-x86_64
Identifier: qemu-system-x86_64
Version: 0
Code Type: X86-64 (Native)
Parent Process: studio [24338]
Responsible: studio [24338]
User ID: 503
Date/Time: 2021-06-23 15:10:43.330 -0700
OS Version: Mac OS X 10.15.6 (19G2021)
Report Version: 12
Anonymous UUID: CA586B3B-F518-2387-5DB1-1CA2D33288CD
Time Awake Since Boot: 33000 seconds
System Integrity …Run Code Online (Sandbox Code Playgroud) 我刚刚在 Mac 上将 Android Studio 升级到最新稳定版本 (Arctic Fox 2020.3.1),但现在我的项目无法构建。我在 IDE 顶部栏中收到“Kotlin 未配置”消息,在构建输出中收到此错误:
Could not find org.jetbrains.kotlin:kotlin-android-extensions-runtime:1.5.21.
Required by:
project :app
Run Code Online (Sandbox Code Playgroud)
我尝试将此依赖项添加到应用程序模块 Gradle 文件中,但错误仍然存在:
implementation "org.jetbrains.kotlin:kotlin-android-extensions-runtime:$kotlin_version"
Run Code Online (Sandbox Code Playgroud)
供您参考,这是我的项目 Gradle 文件:
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext {
kotlin_version = "1.5.21"
version_navigation = "2.3.5"
version_lifecycle_extensions = "2.2.0"
version_lifecycle = "2.3.1"
version_room = "2.4.0-alpha04"
//version_room = "2.2.6"
version_coroutine = "1.5.0"
version_retrofit = "2.9.0"
version_moshi = "1.9.3"
version_retrofit_coroutines_adapter = "0.9.2"
version_glide = "4.12.0"
} …Run Code Online (Sandbox Code Playgroud) 我需要能够在 Android Studio 中创建一个虚拟设备,这允许我在旧的 Android 系统(例如 Lollipop 或 Marshmallow)上测试我的应用程序,但看起来我无法做到这一点。
我看到的唯一可用的 ARM 映像是“armeabi-v7a”,每次我创建一个新设备并尝试启动它时,我都会收到错误“AVS [设备名称] 的模拟器进程已终止”,如图所示下面拍摄:
SKD 工具面板内的一切似乎都已就位,如下所示:
对于 arm64-v8a 映像,一切正常。
供您参考,我使用的是 Android Studio for Mac 版本 Bumblebee 2021.1.1 Patch 3,它应该是最新的:
刚刚更新到 Mac 上的 Android Studio Arctic Fox,修复并更新了所有 Gradle 设置以使其与 Gradle 7.0 以及这个新版本要求我做的任何事情兼容之后,我现在在构建项目时遇到了这个错误:
Execution failed for task ':app:kaptDebugKotlin'.
> A failure occurred while executing org.jetbrains.kotlin.gradle.internal.KaptWithoutKotlincTask$KaptExecutionWorkAction
> java.lang.reflect.InvocationTargetException (no error message)
Run Code Online (Sandbox Code Playgroud)
作为参考,这是我的项目 Gradle 文件:
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext {
kotlin_version = "1.5.21"
version_navigation = "2.3.5"
version_lifecycle_extensions = "2.2.0"
version_lifecycle = "2.3.1"
version_room = "2.4.0-alpha04"
//version_room = "2.2.6"
version_coroutine = "1.5.0"
version_retrofit = "2.9.0"
version_moshi = "1.9.3"
version_retrofit_coroutines_adapter = "0.9.2" …Run Code Online (Sandbox Code Playgroud) 我是 Android 编程新手,我正在 Mac 上使用最新版本的 Android Studio。
我的问题在于模拟器,特别是平板电脑模拟器(Pixel C、Nexus 9 和 10),这让我很难理解为什么我在模拟器显示屏上进行的任何点击都会向上移动(在 y 轴上)大量的像素。例如,如果我单击主屏幕上的 Chrome 图标,实际上,模拟器会在该位置上方约 100-150 像素处进行单击!为什么?
我所有的手机模拟器都没有问题。此问题仅出现在平板电脑上。有任何想法吗?
预先感谢您提供此问题的任何可能的解决方案。
祝一切顺利,法布。