Open tayfunyasar opened 5 years ago
I have added props below after read https://github.com/material-components/material-components-android/issues/193#issuecomment-450471987 but i got another errors.
added into "gradle.properties"
android.useAndroidX=true android.enableJetifier=true
errors:
tayfun@tayfun-G3-3579:~/dev/gitlab/instaton-mobile$ react-native run-android info Starting JS server... info Building and installing the app on the device (cd android && ./gradlew app:installDebug)...
Task :react-native-device-info:compileDebugJavaWithJavac Note: /home/tayfun/dev/gitlab/instaton-mobile/node_modules/react-native-device-info/android/src/main/java/com/learnium/RNDeviceInfo/RNDeviceModule.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details.
Task :react-native-gesture-handler:compileDebugJavaWithJavac FAILED /home/tayfun/dev/gitlab/instaton-mobile/node_modules/react-native-gesture-handler/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerStateChangeEvent.java:3: error: package android.support.v4.util does not exist import android.support.v4.util.Pools; ^ /home/tayfun/dev/gitlab/instaton-mobile/node_modules/react-native-gesture-handler/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerStateChangeEvent.java:19: error: package Pools does not exist private static final Pools.SynchronizedPool
EVENTS_POOL = ^ /home/tayfun/dev/gitlab/instaton-mobile/node_modules/react-native-gesture-handler/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerEvent.java:3: error: package android.support.v4.util does not exist import android.support.v4.util.Pools; ^ /home/tayfun/dev/gitlab/instaton-mobile/node_modules/react-native-gesture-handler/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerEvent.java:19: error: package Pools does not exist private static final Pools.SynchronizedPool EVENTS_POOL = ^ /home/tayfun/dev/gitlab/instaton-mobile/node_modules/react-native-gesture-handler/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerStateChangeEvent.java:20: error: package Pools does not exist new Pools.SynchronizedPool<>(TOUCH_EVENTS_POOL_SIZE); ^ /home/tayfun/dev/gitlab/instaton-mobile/node_modules/react-native-gesture-handler/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerEvent.java:20: error: package Pools does not exist new Pools.SynchronizedPool<>(TOUCH_EVENTS_POOL_SIZE); ^ Note: /home/tayfun/dev/gitlab/instaton-mobile/node_modules/react-native-gesture-handler/android/src/main/java/com/swmansion/gesturehandler/react/RNGestureHandlerButtonViewManager.java uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details. Note: Some input files use unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. 6 errors FAILURE: Build failed with an exception.
What went wrong: Execution failed for task ':react-native-gesture-handler: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.
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 2s 25 actionable tasks: 22 executed, 3 up-to-date error Could not install the app on the device, read the error above for details. Make sure you have an Android emulator running or a device connected and have set up your Android development environment: https://facebook.github.io/react-native/docs/getting-started.html error Command failed: ./gradlew app:installDebug. Run CLI with --verbose flag for more details. tayfun@tayfun-G3-3579:~/dev/gitlab/instaton-mobile$
I have added "jetifier" as dev dependency and script command. It worked but is this the right solution for ignite?
https://github.com/kmagiera/react-native-gesture-handler/issues/647#issuecomment-509862615
Getting the same error
I'm getting the same error, hopefully someone can help us with this error.
Getting the same error
I'm getting the same error. It happens when I add the Dev Screens to my project. If you don't have Dev Screens it builds okay.
Is this an Andross-specific bug? It seems to be. If so, we can move this issue over to the ignite-andross repo.
I've actually had to do the following in order to build for Andross... https://github.com/material-components/material-components-android/issues/193#issuecomment-538702727
Hey all, as @tayfunyasar said, It worked for me: if you generate ignite solution with dev screens, you will gave to add to "gradle.properties" file
android.useAndroidX=true
android.enableJetifier=true
and running:
npm i jetifier
npx jetifier
I have started new project from scratch.
I'm having error during run.
Here it is my doctor result.
I executed these commands below. And nothing changed.