react-native-batch-push icon indicating copy to clipboard operation
react-native-batch-push copied to clipboard

[Android]: issue on build

Open SuperBesse opened this issue 6 years ago • 10 comments

* What went wrong:
A problem occurred configuring project ':@bam.tech/react-native-batch'.
> The project name '@bam.tech/react-native-batch' must not contain any of the following characters: [/, \, :, <, >, ", ?, *, |]. Set the 'rootProject.name' or adjust the 'include' statement (see https://docs.gradle.org/5.5/dsl/org.gradle.api.initialization.Settings.html#org.gradle.api.initialization.Settings:include(java.lang.String[]) for more details).

Any idea to fix this issue on android ? Everything works on ios.

SuperBesse avatar Feb 16 '20 14:02 SuperBesse

Hello SuperBesse, did you find a solution?

leoz2007 avatar Feb 25 '20 17:02 leoz2007

Unfortunately no :(

SuperBesse avatar Mar 02 '20 09:03 SuperBesse

did you find a solution? :(

ahmadrezaM97 avatar Mar 02 '20 11:03 ahmadrezaM97

Not yet :( I also had another problem on IOS. When you install the npm package, the podspec file aren't find.

Add ios directory on your Podfile path for RNBatchPush

pod 'RNBatchPush',: path => "../node_modules/@bam.tech/react-native-batch/ios"

Maybe we have the same kind of error with android ?

leoz2007 avatar Mar 03 '20 10:03 leoz2007

Also having this issue

jasondibenedetto avatar Mar 17 '20 00:03 jasondibenedetto

Anyone find a solution?

leoz2007 avatar Mar 31 '20 08:03 leoz2007

@Minishlink @yleflour any progress on this one? Currently blocking react-native 0.61 upgrade.

Is the solution at this point to fork and rename the android package?

jasondibenedetto avatar Apr 15 '20 00:04 jasondibenedetto

Will be looking into it tomorrow

yleflour avatar Apr 21 '20 08:04 yleflour

The issue is only on RN 0.61, it work properly on 0.62. I suggest you guys just update your RN to 0.62, explanations :

The react native community android cli used in react-native 0.61 name the module based on its package.json name. And it doesn't work properly with package name containing dots.

(the line : name.replaceAll('^@([\w-]+)/', '$1_') didnt replace @bam.tech/react-native-batch to @bam.tech_react-native-batch) They replaced it : https://github.com/react-native-community/cli/commit/3f37b390d62ef37302ac211b12f1eb0c62b7b814#diff-375026a0607eb034a6fc70cca7d74689

Nevosis avatar Apr 21 '20 14:04 Nevosis

Thank you so much for investigating the issue. I will be closing the issue and PR then. If anyone requires 0.61, please use patch-package to apply the fix provided by @Nevosis

yleflour avatar Apr 21 '20 15:04 yleflour