React-native-config: Support newest Android Gradle Plugin version 4.1.0

Created on 13 Oct 2020  路  7Comments  路  Source: luggit/react-native-config

I met compile error like this. How can I fix it?

/node_modules/react-native-config/android/dotenv.gradle' line: 83

  • What went wrong:
    Execution failed for task ':app:generateDebugBuildConfig'.
    > No signature of method: com.android.build.gradle.internal.variant.ApplicationVariantData.getName() is applicable for argument types: () values: []
    Possible solutions: getAt(java.lang.String), getClass()

Most helpful comment

After I update react-native-config 1.4.0, this issue disappeared

All 7 comments

This issue happens 'com.android.tools.build:gradle:4.1.0' not 'com.android.tools.build:gradle:4.0.2'.

I have faced this issue as well.
The above solution seems to be the only workaround.

@jihokim2 Can you change the issue title to be more descriptive e.g.
"Support newest Android Gradle Plugin version 4.1.0" ?

I think 'Fix for gradle 4.1.0. #502's solution. Is it solution? @anfriis

Yes that PR could be a solution to this issue.
But I still think you should change the title of this issue to be more descriptive.

Sorry, I changed title of the issue. Thank you for this.

After I update react-native-config 1.4.0, this issue disappeared

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kidnapkin picture kidnapkin  路  3Comments

atljoseph picture atljoseph  路  4Comments

arcollector picture arcollector  路  4Comments

francisrod01 picture francisrod01  路  3Comments

timscott picture timscott  路  5Comments