GithubHelp home page GithubHelp logo

Comments (9)

RamyEl-basyouni avatar RamyEl-basyouni commented on May 27, 2024 3

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

from ignite-andross.

tayfunyasar avatar tayfunyasar commented on May 27, 2024

I have added props below after read material-components/material-components-android#193 (comment) 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$

from ignite-andross.

tayfunyasar avatar tayfunyasar commented on May 27, 2024

I have added "jetifier" as dev dependency and script command. It worked but is this the right solution for ignite?

software-mansion/react-native-gesture-handler#647 (comment)

from ignite-andross.

sahilvicesoftware avatar sahilvicesoftware commented on May 27, 2024

Getting the same error

from ignite-andross.

moss1mo avatar moss1mo commented on May 27, 2024

I'm getting the same error, hopefully someone can help us with this error.

from ignite-andross.

paulvales avatar paulvales commented on May 27, 2024

Getting the same error

from ignite-andross.

milesmeow avatar milesmeow commented on May 27, 2024

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.

from ignite-andross.

jamonholmgren avatar jamonholmgren commented on May 27, 2024

Is this an Andross-specific bug? It seems to be. If so, we can move this issue over to the ignite-andross repo.

from ignite-andross.

milesmeow avatar milesmeow commented on May 27, 2024

I've actually had to do the following in order to build for Andross...
material-components/material-components-android#193 (comment)

from ignite-andross.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.