Flipper: Flipper + Gradle 7

Created on 23 Apr 2021  路  9Comments  路  Source: facebook/flipper

馃悰 Bug Report


Flipper is not working with Gradle 7

To Reproduce


distributionUrl=https\://services.gradle.org/distributions/gradle-7.0-bin.zip

Environment

Flipper 0.85

1: Task failed with an exception.

  • Where:
    Build file '/Users/lucas/pontoaponto/pap-passageiro-mobile/node_modules/react-native-flipper/android/build.gradle' line: 30

  • What went wrong:
    A problem occurred evaluating project ':react-native-flipper'.

    Plugin with id 'maven' not found.

2: Task failed with an exception.

  • What went wrong:
    A problem occurred configuring project ':react-native-flipper'.
    > compileSdkVersion is not specified. Please add it to build.gradle
Android help wanted

Most helpful comment

Got the same couple issues as OP with Flipper 0.99, cheers @lucasapereira for raising 馃嵒

Uploaded more detailed logs here
https://scans.gradle.com/s/et3ewmveubhae


Got it working in a minimal template project in the end with Hermes
https://github.com/leotm/react-native-template-typescript

Some deets on what needed to be done
https://github.com/leotm/react-native-template-typescript/commit/2fd5737c331f57eecd34d1c7c130070e38570806

And PR here
https://github.com/facebook/flipper/pull/2619

Screen below

Screenshot 2021-07-26 at 09 07 06

All 9 comments

Same problem here

Same problem here man :(

Probably won't have the bandwidth to look into this in the near future. If someone wants to take a look and work on a PR, I'd be happy to take a look.

This issue seems not be solved. Using version 0.92.0 still produces this error with gradle:

Build file '/node_modules/react-native-flipper/android/build.gradle' line: 30

A problem occurred evaluating project ':react-native-flipper'.
Plugin with id 'maven' not found.

See: https://github.com/facebook/flipper/blob/7bd4f80c2570bebb52af3cf49e45fc6130d6a473/react-native/react-native-flipper/android/build.gradle#L30

Same problem with version 0.93.0... even if it is supposed to be fixed by this commit : https://github.com/facebook/flipper/commit/0df76e7267397c3d525e86ec0f4afee18efa5444 as mentionned above. 馃 Maybe I did something wrong ?

The error is still in 0.94.1.

@passy: Are we doing something wrong or is the error still unfixed?

Sorry, I think I missed the RN bit as part of the conversion. Will take a look in the next few days.

There are still some issues with the RN integration which show up in CI. I won't be able to look into this in the near future so if someone else would like to take a stab at it, please feel free!

It's worth noting that React Native itself isn't on Gradle 7 yet so I'm not sure if this is supported.

Got the same couple issues as OP with Flipper 0.99, cheers @lucasapereira for raising 馃嵒

Uploaded more detailed logs here
https://scans.gradle.com/s/et3ewmveubhae


Got it working in a minimal template project in the end with Hermes
https://github.com/leotm/react-native-template-typescript

Some deets on what needed to be done
https://github.com/leotm/react-native-template-typescript/commit/2fd5737c331f57eecd34d1c7c130070e38570806

And PR here
https://github.com/facebook/flipper/pull/2619

Screen below

Screenshot 2021-07-26 at 09 07 06

Was this page helpful?
0 / 5 - 0 ratings