Closed wheel1992 closed 5 years ago
My program works fine! Under android/build.gradle
classpath 'com.android.tools.build:gradle:3.3.1'
classpath 'org.jetbrains.kotlin:kotlin-gradle-plugin:1.3.20'
Under android/app/build.gradle
estImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'
implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk7:$kotlin_version'
Yours will work because it is not AndroidX
The problem is that you replaced a :
with a .
Use androidTestImplementation 'androidx.test:runner:1.1.1'
instead.
@lColinDl thank you!
The problem is that you replaced a
:
with a.
UseandroidTestImplementation 'androidx.test:runner:1.1.1'
instead.
This works for me
ERROR: Failed to resolve: com.androidx.support.test.espresso:espresso-core:3.0.2 :( please help me
ERROR: Failed to resolve: com.androidx.support.test.espresso:espresso-core:3.0.2 :( please help me
Go to the app level build.gradle of your Android directory and add the espresso dependency like this
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
ERROR: Failed to resolve: com.androidx.support.test.espresso:espresso-core:3.0.2 :( please help me
Go to the app level build.gradle of your Android directory and add the espresso dependency like this
androidTestImplementation 'androidx.test.espresso:espresso-core:3.2.0'
Thank you <3
Below is the output after trying to build gradle.
Under
android/build.gradle
Under
android/app/build.gradle