RobotiumTech / robotium

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

Build error with JavaCompile.setDependencyCacheDir() #867

Open aleksnice opened 7 years ago

aleksnice commented 7 years ago

I'm working with "Robotium recorder", but last time I got mistake when I started "New Robotium Test".

Here is this error: Input: C:\Android\uforum-v3-android\executorproject\gradlew.bat -Dorg.gradle.daemon=true assembleDebugAndroidTest -u -b C:\Android\uforum-v3-android\executorproject\build.gradle Output: The JavaCompile.setDependencyCacheDir() method has been deprecated and is scheduled to be removed in Gradle 4.0. FAILURE: Build failed with an exception. What went wrong: A problem occurred configuring root project 'executorproject'. > org.gradle.api.internal.tasks.DefaultTaskInputs$TaskInputUnionFileCollection cannot be cast to org.gradle.api.internal.file.collections.DefaultConfigurableFileCollection 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: 1.666 secs

How to solve this problem?

ghost commented 7 years ago

+1

ghost commented 7 years ago

+1

shineirvin commented 7 years ago

+1

shineirvin commented 7 years ago

Did any of you guys solve this ?