android - 我正在使用 ubuntu 操作系统。当我在Android studio中运行模拟器时,它等待了很长时间并关闭
问题描述
您好,我的名字是 Oguzhan,我有一个问题,我使用的是 ubuntu 操作系统。当我在 Android Studio 中运行模拟器时,它会等待很长时间并关闭。
在 Windows 操作系统中不会出现此问题。我的电脑同时安装了 windows 和 ubuntu(双启动)
https://user-images.githubusercontent.com/40228440/63114848-8fcfa980-bf9e-11e9-8e48-ccecf358e8e1.png
https://user-images.githubusercontent.com/40228440/63114846-8fcfa980-bf9e-11e9-8a27-6fe5fb8130a9.png
https://user-images.githubusercontent.com/40228440/63114845-8fcfa980-bf9e-11e9-901f-5ae4d985faa1.png
构建.gradle
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:3.4.2'
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
allprojects {
repositories {
google()
jcenter()
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
build.grade 模块
apply plugin: 'com.android.application'
android {
compileSdkVersion 29
buildToolsVersion "29.0.2"
defaultConfig {
applicationId "com.example.myapplication"
minSdkVersion 14
targetSdkVersion 29
versionCode 1
versionName "1.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'androidx.appcompat:appcompat:1.1.0-rc01'
implementation 'androidx.constraintlayout:constraintlayout:1.1.3'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test:runner:1.2.0'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
}
解决方案
推荐阅读
- bash - Applescript 窗口中的进度条
- reactjs - 使用 Next.js 搜索表单
- jenkins - gradle jacocoTestReport 任务失败
- python - 多类问题的one-hot-encoding类标签的正确方法
- google-analytics - 谷歌分析在删除过滤器后显示延迟数据
- json - 使用 jq 修复 JSON 格式
- rest - Strapi : 在 chid 集合中添加元素
- emacs - 组织模式:折叠问题(当前行没有找到匹配项)
- adonis.js - AdonisJs 中的会话没有破坏
- kubernetes - 如何编辑此部署 Yaml 以在容器中具有写入权限