I'm trying to run my flutter application, but when it resolving android dependencies it will timeout. in android studio I can change gradle in offline model. is there any way to set gradle offline mode in flutter. the android studio setting(gradle offline work model) isn't work for flutter.
FLUTTER_PROJ_DIR/android/gradlew.bat
--offline
in %JAVA_EXEC%
@rem Execute Gradle
"%JAVA_EXE%" %DEFAULT_JVM_OPTS% %JAVA_OPTS% \
%GRADLE_OPTS% "-Dorg.gradle.appname=%APP_BASE_NAME%" \
-classpath "%CLASSPATH%" \
org.gradle.wrapper.GradleWrapperMain %CMD_LINE_ARGS% --offline
FLUTTER_PROJ_DIR/android/gradlew
--offline
in $JAVACMD
exec "$JAVACMD" "${JVM_OPTS[@]}" -classpath "$CLASSPATH" \
org.gradle.wrapper.GradleWrapperMain "$@" --offline
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With