Pix*_*aku 5 junit kotlin android-studio
我已经尝试了很多事情,从无效缓存/重新启动到干净地重新安装 android studio 多次。似乎没有任何作用。
在我的 build.gradle 中(项目级别)
dependencies {
classpath "com.android.tools.build:gradle:7.0.4"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.6.10"
...
Run Code Online (Sandbox Code Playgroud)
build.gradle(应用程序级别)
dependencies {
implementation 'androidx.core:core-ktx:1.7.0'
implementation 'androidx.appcompat:appcompat:1.4.1'
implementation 'com.google.android.material:material:1.5.0'
implementation 'androidx.constraintlayout:constraintlayout:2.1.3'
androidTestImplementation 'androidx.test.ext:junit:1.1.3'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0'
testImplementation "junit:junit:4.13.2"
androidTestImplementation "androidx.test.ext:junit:1.1.3"
androidTestImplementation "androidx.test.espresso:espresso-core:3.4.0"
}
Run Code Online (Sandbox Code Playgroud)
我已经在设置中启用了 corretto-1.8 版本的 gradle jdk,并且启用了 JUint 的插件。我似乎无法找到这个问题的任何解决方案。
PS 我最近已将 Windows 更新到 Windows 11。在此之前,上述问题一直存在。
| 归档时间: |
|
| 查看次数: |
280 次 |
| 最近记录: |