RobotiumTech / robotium

Android UI Testing
http://www.robotium.org
Apache License 2.0
2.86k stars 786 forks source link

Build failed: Could not find :ExecutorLibrary: #873

Open wendyfu opened 7 years ago

wendyfu commented 7 years ago

Run Robotium Recorder through this guide Encountered Recording failed. Please see output: <path>\Robotium_log.txt after selecting APK and run New Robotium Test.

All prerequisites already fulfilled: Physical device with external storage, Android API level available in SDK Manager.

Robotium_log.txt

Input:

C:\Users\wendy\StudioProjects\ExampleTestProject_AndroidStudio\gradlew.bat -Dorg.gradle.daemon=true assembleDebugAndroidTest -u -b C:\Users\wendy\StudioProjects\ExampleTestProject_AndroidStudio\executorproject\build.gradle

Output:

Incremental java compilation is an incubating feature. FAILURE: Build failed with an exception. * What went wrong: A problem occurred configuring root project 'executorproject'. > Could not resolve all dependencies for configuration ':_debugAndroidTestCompile'. > Could not find :ExecutorLibrary:. Searched in the following locations: https://repo1.maven.org/maven2//ExecutorLibrary//ExecutorLibrary-.pom https://repo1.maven.org/maven2//ExecutorLibrary//ExecutorLibrary-.aar file:/C:/Users/wendy/StudioProjects/ExampleTestProject_AndroidStudio/executorproject/libs/ExecutorLibrary-.aar file:/C:/Users/wendy/StudioProjects/ExampleTestProject_AndroidStudio/executorproject/libs/ExecutorLibrary.aar file:/C:/Users/wendy/AppData/Local/Android/sdk/extras/android/m2repository//ExecutorLibrary//ExecutorLibrary-.pom file:/C:/Users/wendy/AppData/Local/Android/sdk/extras/android/m2repository//ExecutorLibrary//ExecutorLibrary-.aar Required by: :executorproject:unspecified * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. BUILD FAILED Total time: 4.26 secs

Any help will be appreciated.

RandyHsuTW commented 7 years ago

I had the same issue with Android Studio 2.3.3+Robotium Recorder..... But, I used Android Studio 2.2.2+Robotium Recorder that is OK~~ For your reference~~

shineirvin commented 7 years ago

are you sure @RandyHsuTW ? I'm going to downgrade my android studio if its really the case.

SimuOn commented 6 years ago

@RandyHsuTW ,can you tell me the gradle plugin version, gradle version in AS2.2.2 and 2.3.3。I had the same issue.