Answer the question
In order to leave comments, you need to log in
Gradle doesn't pull dependencies, what's wrong?
The idea is this - I need to write simple UI tests on ESPRESSO for a telegram application for android to create a chat with a bot, send a message and receive the expected message.
I did the following:
1) I took the source code of the telegrams, successfully compiled it in android studio and went through the required steps
2) I created a bot (which I will write to)
3) Next I wanted to connect the necessary dependencies to gradle (here is a stop)
4) I wanted to create a class where to write the tests themselves with espresso methods but library import lines are red
Gradle (sync project runs without error)
dependencies {
implementation 'androidx.core:core:1.1.0-beta01'
implementation 'androidx.palette:palette:1.0.0'
implementation 'androidx.exifinterface:exifinterface:1.1.0'
compileOnly 'org.checkerframework:checker-qual:2.5.2'
compileOnly 'org.checkerframework:checker-compat-qual:2.5.0'
implementation 'com.google.firebase:firebase-messaging:20.1.0'
implementation 'com.google.firebase:firebase-config:19.1.1'
implementation 'com.google.android.gms:play-services-maps:17.0.0'
implementation 'com.google.android.gms:play-services-auth:17.0.0'
implementation 'com.google.android.gms:play-services-vision:16.2.0'
implementation 'com.google.android.gms:play-services-wallet:17.0.0'
implementation 'com.google.android.gms:play-services-wearable:17.0.0'
implementation 'com.google.android.gms:play-services-location:17.0.0'
implementation 'net.hockeyapp.android:HockeySDK:5.2.0'
implementation 'com.googlecode.mp4parser:isoparser:1.0.6'
implementation 'com.stripe:stripe-android:2.0.2'
testImplementation 'junit:junit:4.12'
androidTestImplementation 'androidx.test.ext:junit:1.1.1'
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
androidTestImplementation 'com.android.support.test:rules:1.0.2'
implementation files('libs/libgsaverification-client.aar')
}
Answer the question
In order to leave comments, you need to log in
1. Does the build from Android Studio pass? What directory is the test in? Perhaps the problem is that it is considered code and not a test. You can check it either by looking at where it lies and checking the properties of the folder, or by switching junit to implementation mode instead of testImplementation and making sure that this leads to the desired result
.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question