所以,我是新来的用户,刚刚安装了Android Studio,然后想创建一个基本活动。但是,问题是他们要我安装未通过SDK管理器安装的SDK和Haxm。我已经尝试了很多,并使用了Stack-overflow中说明的所有方法来解决此问题,但是它们的方法都没有起作用。
存在相同的问题。我刚刚在新笔记本电脑上安装了Android Studio,加载了两天前我在做的项目,却遇到了同样的错误,这是我的build.grade
apply plugin: 'com.android.application'
android {
compileSdkVersion 28
defaultConfig {
applicationId "com.wallpy.wallpys"
minSdkVersion 21
targetSdkVersion 28
versionCode 6
versionName "1.3.0"
testInstrumentationRunner "androidx.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation project(':androidunsplash')
implementation 'com.squareup.picasso:picasso:2.71828'
implementation("com.squareup.okhttp3:okhttp:3.12.0")
implementation 'androidx.recyclerview:recyclerview:1.0.0'
implementation 'com.google.code.gson:gson:2.8.5'
implementation 'com.google.android.material:material:1.0.0'
implementation 'androidx.appcompat:appcompat:1.0.2'
implementation 'androidx.constraintlayout:constraintlayout:1.1.1'
implementation 'androidx.legacy:legacy-support-v4:1.0.0-beta01'
implementation 'com.google.android.gms:play-services-ads:17.1.1'
implementation 'com.facebook.android:facebook-android-sdk:[5,6)'
}