Skip to content
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

Generate problem error for android #17222

Closed
Arthurmtro opened this issue May 25, 2023 · 2 comments
Closed

Generate problem error for android #17222

Arthurmtro opened this issue May 25, 2023 · 2 comments
Labels
outdated scope: react-native Issues relating to React Native type: bug

Comments

@Arthurmtro
Copy link

Arthurmtro commented May 25, 2023

Current Behavior

Actually, when you generate an RN app with NX there is some stranges errors,
first of all even in nx 16.2.2 the import com.lugg.RNCConfig.RNCConfigPackage; is still here.

but also the debug.keystore have some problems and you can have this error

* What went wrong:
Execution failed for task ':app:packageDebug'.
> A failure occurred while executing com.android.build.gradle.tasks.PackageAndroidArtifact$IncrementalSplitterRunnable
   > com.android.ide.common.signing.KeytoolException: Failed to read key androiddebugkey from store "/Users/arthurmtro/Developer/projects/garden-grower/apps/mobile/android/app/debug.keystore": DerInputStream.getLength(): lengthTag=63, too big.

Expected Behavior

Should run

GitHub Repo

No response

Steps to Reproduce

Just generate an @nx RN app and run it for android

Nx Report

Node   : 18.16.0
   OS     : darwin arm64
   pnpm   : 8.1.0
   Hasher : Native
   
   nx                 : 16.2.2
   @nx/js             : 16.2.2
   @nx/jest           : 16.2.2
   @nx/linter         : 16.2.2
   @nx/workspace      : 16.2.2
   @nx/detox          : 16.2.2
   @nx/devkit         : 16.2.2
   @nx/eslint-plugin  : 16.2.2
   @nx/react          : 16.2.2
   @nx/react-native   : 16.2.2
   @nrwl/tao          : 16.2.2
   @nx/web            : 16.2.2
   nx-cloud           : 16.0.5
   typescript         : 5.0.2

Failure Logs

No response

Operating System

macOS

Additional Information

There is a fix

To fix this, I install react-native-config and follow the installation guide for Android.
I think that the sample is made for being use with react-native-config, but he is not added to the dependency list

And for the Debug.keystore, just replace yours by one taken from a plain React Native app built with the RN cli

Have a good day :D

@AgentEnder AgentEnder added the scope: react-native Issues relating to React Native label May 25, 2023
@xiongemi
Copy link
Collaborator

xiongemi commented May 25, 2023

this should be fixed in pr #17074.

this is already fixed in latest beta 16.3.0-beta.8. this should all be fixed in nx version 16.3

@github-actions
Copy link

This issue has been closed for more than 30 days. If this issue is still occuring, please open a new issue with more recent context.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 25, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
outdated scope: react-native Issues relating to React Native type: bug
Projects
None yet
Development

No branches or pull requests

3 participants