Open aya-salama1989 opened 7 years ago
Could you post your dependencies ?
The problem is that your app.apk and app test.apk share the same libraries, your denpendency compile "com.android.support:support-annotations:25.3.1" is greater than the one 'com.android.support:support-annotations:23.1.1' that is getting in your androidTestCompile.
You should indicate to gradle with which one do you want to work with. You can do it telling explicitly that uses in your androidTestCompile "com.android.support:support-annotations:25.3.1"
You can find more info here https://sites.google.com/a/android.com/tools/tech-docs/new-build-system/user-guide#TOC-Resolving-conflicts-between-main-and-test-APK and here http://stackoverflow.com/questions/36833606/android-support-library-error-after-updating-to-23-3-0
My mentor helped me solve it. It was due too long file paths and names as you can notice in point 2 and 3
How did you solve it ?
moved project files to a shorter path and renamed it to shorter names also, for instance
from:
D:\NanoDegree\TeaTime\AdvancedAndroid_TeaTime-TESP.01-Exercise-FinishOrderActivityBasicTest\app\build\intermediates\res\merged\debug\drawable-xhdpi-v4\common_google_signin_btn_text_dark_pressed.9.png
to:
D:\TeaTime-TESP.01-Exercise-FinishOrderActivityBasicTest\app\build\intermediates\res\merged\debug\drawable-xhdpi-v4\common_google_signin_btn_text_dark_pressed.9.png
It works like a charm! Thanks!
Hi guys, while trying to follow up with espresso lesson repos, I found the following
1- Warning:Conflict with dependency 'com.android.support:support-annotations'. Resolved versions for app (25.1.0) and test app (23.1.1) differ. See http://g.co/androidstudio/app-test-app-conflict for details. "I guess my build tools issue but wasn't solved after changing the build number "
and I can't really get what's the reason for the following issues;
2- Error:Failed to crunch file D:\NanoDegree\TeaTime\AdvancedAndroid_TeaTime-TESP.01-Exercise-FinishOrderActivityBasicTest\app\build\intermediates\exploded-aar\com.google.android.gms\play-services-base\9.8.0\res\drawable-xhdpi-v4\common_google_signin_btn_text_dark_pressed.9.png into D:\NanoDegree\TeaTime\AdvancedAndroid_TeaTime-TESP.01-Exercise-FinishOrderActivityBasicTest\app\build\intermediates\res\merged\debug\drawable-xhdpi-v4\common_google_signin_btn_text_dark_pressed.9.png
3- Error:Execution failed for task ':app:mergeDebugResources'.
Besides android studio can't recognize testing classes