React-native-config: [SOLVED] ERROR: No value has been specified for property 'manifestOutputDirectory'.

Created on 19 Apr 2019  路  8Comments  路  Source: luggit/react-native-config

Hi all. I've installed react-native config, successfully linked it, added apply from: project(':react-native-config').projectDir.getPath() + "/dotenv.gradle" line to the app/build.gradle and after that my Android Studio sync fails with ERROR: No value has been specified for property 'manifestOutputDirectory'.. I noticed that this happens only after updagrading gradle to gradle:3.4.0 and gradle-service to distributionUrl=https\://services.gradle.org/distributions/gradle-5.1.1-all.zip. Seems like react-native-config doesn't work with the latest gradle

Most helpful comment

I came across this problem in unrelated project, but I found a solution that works for me: disabling Gradle feature "Only sync the active variant". In Android Studio: File > Settings > Experimental > Gradle -> uncheck "Only sync the active variant" checkbox.

All 8 comments

Seeing this in our own project too (we dont use react-native though). Our errors is:

* What went wrong:
A problem was found with the configuration of task ':*******:processDebugAndroidTestManifest'.
> No value has been specified for property 'manifestOutputDirectory'.

when upgrading to plugin 3.4 /gradle 5.1.1 ... wondering if its an issue with the android plugin. Tried Andoird studio 3.5 and the issue went away so maybe just avoid plugin version 3.4 till they patch it.

I came across this problem in unrelated project, but I found a solution that works for me: disabling Gradle feature "Only sync the active variant". In Android Studio: File > Settings > Experimental > Gradle -> uncheck "Only sync the active variant" checkbox.

@piotrdz Thanks, it works for me too!

@piotrdz, sorry, but Android Studio: File > Settings? I only have File > Others Settings and File > Settings Repository and none of them have Experimental > Gradle.

@rochapablo Are you using macOS? On Mac the settings are under Android Studio -> Preferences.

@piotrdz, yes, I'm using macOS. Founded! thank you.

You know, it did work, but it seems that the error occurs only when you click in Sync (after some change on build.gradle). Even having the error, cleaning the project and rebuilding the error does not happen.

I don't know why this, here I'm having a similar problem. When I Sync I got the error but cleaning and rebuilding the error goes way. But since it's another project, in this case I still have to try the Only sync the active variant option.

Anyway, thank you again for your time.

I came across this problem in unrelated project, but I found a solution that works for me: disabling Gradle feature "Only sync the active variant". In Android Studio: File > Settings > Experimental > Gradle -> uncheck "Only sync the active variant" checkbox.

As long as it seems to be the solution (checked in a new project, it helps) I close the issue

@piotrdz, sorry, but Android Studio: File > Settings? I only have File > Others Settings and File > Settings Repository and none of them have Experimental > Gradle.

After doing that my bundle is not opening automatically from android studio.
can you please help me with that ?

Was this page helpful?
0 / 5 - 0 ratings