Ладно, я могу быть очень тупым, но не могу импортировать мокито в свой контрольно-измерительный прибор. Вот скриншот моего класса тестирования инструментовки, который просто не может найти пакет mockito.
![Mockito error](https://i.stack.imgur.com/s0wRC.png)
А вот мой полный файл build.gradle
применить плагин: 'com.android.application'
buildscript {
repositories {
maven { url 'https://maven.fabric.io/public' }
}
dependencies {
classpath 'io.fabric.tools:gradle:1.+'
}
}
repositories {
jcenter()
maven { url 'https://maven.fabric.io/public' }
}
android {
compileSdkVersion 28
defaultConfig {
applicationId "com.example.trendingrepo"
minSdkVersion 19
targetSdkVersion 28
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android-optimize.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
implementation fileTree(dir: 'libs', include: ['*.jar'])
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support:recyclerview-v7:28.0.0'
implementation 'de.hdodenhof:circleimageview:2.2.0'
implementation 'com.google.code.gson:gson:2.8.5'
implementation 'com.github.bumptech.glide:glide:4.9.0'
implementation "android.arch.work:work-runtime:1.0.1"
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
androidTestImplementation 'junit:junit:4.12'
androidTestImplementation('org.mockito:mockito-android:2.6.3') {
exclude group: 'org.hamcrest', module: 'hamcrest-core'
}
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test:rules:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
androidTestImplementation('org.droidparts.dexmaker:dexmaker:1.5') {
exclude module: 'objenesis'
}
}