org.gradle.api.UncheckedIOException: Failed to capture snapshot of input
In my case it fixed by adding:
android {
...
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8 // <= add this
targetCompatibility JavaVersion.VERSION_1_8 // <= add this
}
}
to android/app/build.gradle file
Go Settings/Gradle/Android Studio. Then check "Enable embedded Maven repository". And you're good to go.
Was having this issue since my network couldn't connect to Maven repository. Changing my network settings did the job