我刚接触过AS,遇到了不少问题。我试过一些别人的想法,但都没有用。
它说我缺少平台,但正如你可以从图片中看到的,我已经安装了所有的28版本的东西。然而,它要求第26节。



我把头发拔出来,我只想让它起作用,这样我就可以开始我的课程了。
我使用的是V3.0.1,不想升级,因为我使用的是免费的wifi,这不是最好的。
任何帮助都会很棒的,蒂亚。史考特
发布于 2018-06-18 17:42:31
您指定使用SDK v26。将compileSdkVersion 28和targetSdkVersion 28设置在build.grandle中,这样它就不会要求SDK 26。有关更多信息,请阅读以下内容:https://stackoverflow.com/questions/26694108/what-is-the-difference-between-compilesdkversion-and-targetsdkversion
这是一个编程问题,所以下次请使用堆栈溢出。
发布于 2018-06-18 19:02:54
我什么都没说,因为我不知道怎么做。我该怎么解决呢?我试着在跟踪其他人的线程之前将其更改为28,但没有结果。
编辑以添加;我将两个参数都更改为28,还将minsdk设置为28,这应该更低吗?
apply plugin: 'com.android.application'
android {
compileSdkVersion 28
defaultConfig {
applicationId "com.example.scott.justworkdamnit"
minSdkVersion 28
targetSdkVersion 28
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:26.1.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.2'
implementation 'com.android.support:design:26.1.0'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
}附注:下次我会记得使用堆栈溢出,谢谢;)
https://askubuntu.com/questions/1047674
复制相似问题