Gradle 错误:包android.test不存在
我无法编译我的项目! 请帮帮我Gradle 错误:包android.test不存在,gradle,Gradle,我无法编译我的项目! 请帮帮我 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 c
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.
在安卓Stuio1.4上
//一些意见,请帮助我,我真的需要这个!请帮帮我,我
真的需要这个!请帮帮我,我真的需要这个!请帮帮我,我
真的需要这个!请帮帮我,我真的需要这个!请帮帮我,我
真的需要这个!请帮帮我,我真的需要这个!请帮帮我,我
真的需要这个
我对Android Studio 3.3也有类似的问题。当我尝试运行应用程序时,使用“targetSdkVersion 28”时,我收到消息“error:package android.test不存在”。编译是可能的。 将targetSdkVersion更改为27是解决方法
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'
}