-
-
Notifications
You must be signed in to change notification settings - Fork 406
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ANDROID: Task :@react-native-community_datetimepicker:compileDebugJavaWithJavac FAILED #11
Comments
@rashtay thanks for reporting. What version of Gradle did you use to build your app? In an ideal world the components do not use any deprecated API methods, but I'm not that intimate with the development of the language itself to know first hand what replaces each method. Most of this code has been directly ported from the code base of React Native itself. Hence I wonder if there is a version discrepancy here. I'll try to reproduce first local. It might just be the 0.60 upgrade, for which there is work in progress, see #13 |
@Swaagie com.android.tools.build:gradle:3.4.2 I hope this helps. Do let me know if you need clarity on anything else. |
@rashtay I've just published |
@Swaagie @2.0.0 is not working for me. I'm getting the same issue as above. |
@Swaagie i try to use the ^2.0.0 version but i'm getting same error as @rashtay . |
Facing same issue, using v^2.0.0 and
|
Do your android detox tests work ?
|
@Swaagie Facing same issue, using v^2.0.0 Error: Task: react-native-datetimepicker:compileDebugJavaWithJavac FAILED |
Another broken plugin it seems. Same issue, no chance to compile the app with gradle |
Facing same issue. Thought tt works on IOS. |
Facing same issue. Is there any solutions for this ? |
Same issue. Any work around? |
RNDatePickerDialogFragment.java is trying to import from AndroidX: import androidx.fragment.app.DialogFragment; So it seems like react-native-datetimepicker does not support |
@eightyfive jetifier in -r mode should work though, yes? |
I had no idea this existed. I'll give it a try. Thanks @mikehardy. |
Try to migrate to AndroidX |
@mikehardy Thanks for the tip! Got it working by doing:
|
Great to hear that works! Note that I am a huge proponent of moving to AndroidX + react-native 0.60. It is painful. But the auto-linking stuff and cocoapods, they do justify the pain. In the meantime, understanding the pain, I'll keep jetifier working (forwards and backwards) so we can all get work done. Cheers |
@mikehardy We will definitely migrate shortly. We developed on expokit, which turned out to be a mistake and will be migrating off of that as well since it prevents us from upgrading to the newest RN version. We're just too close to launch right now to do any major migrations. Thanks again! |
closing, please use the solution from #11 (comment) or upgrade to RN >= 0.60 |
Bug
FAILURE: Build failed with an exception.
Execution failed for task ':@react-native-community_datetimepicker: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.1.1/userguide/command_line_interface.html#sec:command_line_warnings
BUILD FAILED in 11s
19 actionable tasks: 11 executed, 8 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.
Environment info
Library version: ^1.0.0
Steps To Reproduce
...
Describe what you expected to happen:
The text was updated successfully, but these errors were encountered: