A new Flutter application that shows world time.
- If you're behind a corp firewall, set proxy in gradle.properties, like this:
systemProp.http.proxyHost=proxy.company.com
systemProp.http.proxyPort=443
systemProp.http.proxyUser=userid
systemProp.http.proxyPassword=password
systemProp.http.auth.ntlm.domain=domain
-
Make sure your JAVA_HOME is set to Java 1.8 home. Validate:
echo $JAVA_HOME
andjava -version
-
Update sdkmanager
sdkmanager --update
-
Accept all android licenses:
flutter doctor --android-licenses
-
Finally, validate
flutter doctor -v
You should be able to see all is clear by now.
- AndroidManifest.xml, add:
<uses-permission android:name="android.permission.INTERNET" />
- Unblock
emulator
in Firewall - Disable LAN Adaptors if using Wireless Adaptor on a laptop
- Use the flag to eliminate error message on console during run
flutter run --enable-software-rendering main.dart
This project is a starting point for a Flutter application.
A few resources to get you started if this is your first Flutter project:
For help getting started with Flutter, view our online documentation, which offers tutorials, samples, guidance on mobile development, and a full API reference.