Comments (9)
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.
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 errorsFAILURE: 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_warningsBUILD 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.
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.
Getting the same error
from ignite-andross.
I'm getting the same error, hopefully someone can help us with this error.
from ignite-andross.
Getting the same error
from ignite-andross.
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.
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.
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)
- Check the render method of 'NavigatorReduxWrapper'. HOT 6
- RN60+ issue for Andross project HOT 4
- Example gives cannot read property 'includes' of undefined HOT 2
- Crash after upgrade to 0.61 HOT 1
- Andross is not actual - problem with andoidx
- [Bug] Can not Create new Project on Windows 10 HOT 8
- Command failed : gradlew.bat app:installDebug. when run react-native run-android HOT 4
- console.tron.log is undefined HOT 9
- TypeError: undefined is not an object (evaluating '_reactNavigation.ThemeColors.light') HOT 27
- failed to add React Native 0.61.4 HOT 1
- Problem with storyBook
- Error Occured while running npx react-native run-android command
- Error: `createStackNavigator()` has been moved to `react-navigation-stack`. HOT 2
- currentlyFocusedField is deprecated and will be removed in a future release. Use currentlyFocusedInput
- How to ingnite-andross use TypeScript when init project?
- Add config option to remove Redux Navigation
- Errors while running `npx react-native run-ios`. Afte resolving errors, Andross rendering correctly on Android, but not on iOS
- generate list didnt show any option
- APIs are not called in background - ios
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ignite-andross.