You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Task :app:compileDebugJavaWithJavac FAILED
/home/rogerd/dev/test_detox/android/app/src/main/java/com/test_detox/MainApplication.java:7: error: package com.facebook.hermes.reactexecutor does not exist
import com.facebook.hermes.reactexecutor.HermesExecutorFactory;
^
/home/rogerd/dev/test_detox/android/app/src/main/java/com/test_detox/MainApplication.java:8: error: cannot find symbol
import com.facebook.react.bridge.JavaScriptExecutorFactory;
^
symbol: class JavaScriptExecutorFactory
location: package com.facebook.react.bridge
/home/rogerd/dev/test_detox/android/app/src/main/java/com/test_detox/MainApplication.java:9: error: cannot find symbol
import com.facebook.react.ReactApplication;
^
symbol: class ReactApplication
location: package com.facebook.react
/home/rogerd/dev/test_detox/android/app/src/main/java/com/test_detox/MainApplication.java:10: error: cannot find symbol
import com.facebook.react.ReactNativeHost;
^
symbol: class ReactNativeHost
location: package com.facebook.react
/home/rogerd/dev/test_detox/android/app/src/main/java/com/test_detox/MainApplication.java:16: error: cannot find symbol
public class MainApplication extends Application implements ReactApplication {
^
symbol: class ReactApplication
/home/rogerd/dev/test_detox/android/app/src/main/java/com/test_detox/MainApplication.java:18: error: cannot find symbol
private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) {
^
symbol: class ReactNativeHost
location: class MainApplication
/home/rogerd/dev/test_detox/android/app/src/main/java/com/test_detox/MainApplication.java:40: error: cannot find symbol
public ReactNativeHost getReactNativeHost() {
^
symbol: class ReactNativeHost
location: class MainApplication
/home/rogerd/dev/test_detox/android/app/build/generated/rncli/src/main/java/com/facebook/react/PackageList.java:17: error: cannot find symbol
private ReactNativeHost reactNativeHost;
^
symbol: class ReactNativeHost
location: class PackageList
/home/rogerd/dev/test_detox/android/app/build/generated/rncli/src/main/java/com/facebook/react/PackageList.java:18: error: cannot find symbol
public PackageList(ReactNativeHost reactNativeHost) {
^
symbol: class ReactNativeHost
location: class PackageList
/home/rogerd/dev/test_detox/android/app/build/generated/rncli/src/main/java/com/facebook/react/PackageList.java:27: error: cannot find symbol
private ReactNativeHost getReactNativeHost() {
^
symbol: class ReactNativeHost
location: class PackageList
/home/rogerd/dev/test_detox/android/app/src/main/java/com/test_detox/MainActivity.java:5: error: MainActivity is not abstract and does not override abstract method getPackages() in ReactActivity
public class MainActivity extends ReactActivity {
^
/home/rogerd/dev/test_detox/android/app/src/main/java/com/test_detox/MainApplication.java:18: error: cannot find symbol
private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) {
^
symbol: class ReactNativeHost
location: class MainApplication
/home/rogerd/dev/test_detox/android/app/src/main/java/com/test_detox/MainApplication.java:39: error: method does not override or implement a method from a supertype @OverRide
^
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':app:compileDebugJavaWithJavac'.
Compilation failed; see the compiler error output for details.
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
We use the issue tracker exclusively for bug reports and feature requests. This issue appears to be a general usage or support question. Instead, please ask a question on Stack Overflow with the detox tag.
Feel free to post your Stack Overflow question here for more visility. We'll take a look at it.
For issues with Expo apps, it is most likely not an issue with Detox itself, but with the Expo runtime or with incorrect Detox setup. For support on how to use Detox with Expo, you should contact the Expo team or the Expo community.
For more information on bots in this reporsitory, read this discussion.
react native : 0.60.5
detox: 14.3.2
I am following the detox installation guide, and got the following error while running
detox build -c android.emu.debug
❯ detox build -c android.emu.debug
detox[18075] INFO: [build.js] cd android && ./gradlew assembleDebug assembleAndroidTest -DtestBuildType=debug && cd ..
FAILURE: Build failed with an exception.
Execution failed for task ':app:compileDebugJavaWithJavac'.
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
Get more help at https://help.gradle.org
Deprecated Gradle features were used in this build, making it incompatible with Gradle 6.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/5.4.1/userguide/command_line_interface.html#sec:command_line_warnings
BUILD FAILED in 1s
13 actionable tasks: 2 executed, 11 up-to-date
detox[18075] ERROR: [cli.js] Error: Command failed: cd android && ./gradlew assembleDebug assembleAndroidTest -DtestBuildType=debug && cd ..
Does anyone know how to solve?
The text was updated successfully, but these errors were encountered: