错误:软件包 android.test 不存在



我无法编译我的项目!请帮助我。

Error:(4, 20) error: package android.test does not exist
Error:(9, 38) error: cannot find symbol class ApplicationTestCase
Error:Execution failed for task ':app:compileDebugAndroidTestJavaWithJavac'.
> Compilation failed; see the compiler error output for details.

在安卓 Stuio 1.4 上。

apply plugin: 'com.android.application'
android {
compileSdkVersion 28
buildToolsVersion "23.0.1"
defaultConfig {
    applicationId "com.mkurbanov.lebap_kwartira"
    minSdkVersion 15
    targetSdkVersion 28
    versionCode 1
    versionName "1.0"
}
buildTypes {
    release {
        minifyEnabled true
        proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
    }
}
}
dependencies {
compile fileTree(include: ['*.jar'], dir: 'libs')
testCompile 'junit:junit:4.12'
compile 'com.android.support:appcompat-v7:26.0.0-alpha1'
compile 'com.android.support:recyclerview-v7:26.0.0-alpha1'
compile 'com.android.support:cardview-v7:26.0.0-alpha1'
compile 'com.android.support:design:26.0.0-alpha1'
compile 'com.android.support:support-v4:26.0.0-alpha1'
compile 'com.nineoldandroids:library:2.4.0'
compile 'com.daimajia.slider:library:1.1.5@aar'
compile 'com.balysv:material-ripple:1.0.2'
compile 'com.daimajia.easing:library:2.0@aar'
compile 'com.daimajia.androidanimations:library:2.3@aar'
compile 'com.github.esafirm.android-image-picker:imagepicker:1.13.1'
// for experimental rx picker
compile 'com.github.esafirm.android-image-picker:rximagepicker:1.13.1'
}

一些评论请帮助我,我真的需要这个!请帮助我 真的需要这个!请帮助我,我真的需要这个!请帮助我 真的需要这个!请帮助我,我真的需要这个!请帮助我 真的需要这个!请帮助我,我真的需要这个!请帮助我 真的需要这个!

我在Android Studio 3.3中遇到了类似的问题。使用"targetSdkVersion 28",当我尝试运行应用程序时,我收到消息"错误:软件包android.test不存在"。编译是可能的。将 targetSdkVersion 更改为 27 是解决方法

最新更新