GoogleCloudPlatform / iot-smart-home-cloud

Sample project using Cloud IoT Core and the Google Assistant
Apache License 2.0
116 stars 58 forks source link

Android App couldn't be build with SDK version 28 that Firebase require #11

Open sw-dev-code opened 4 years ago

sw-dev-code commented 4 years ago

According to documentation "https://firebase.google.com/docs/android/setup#assistant" required SDK version is 28 so when I run build with version 27 from source on this repository following error occurs:

error: resource android:attr/fontVariationSettings not found

devunwired commented 4 years ago

Sorry for the confusion. You really only need to follow the Firebase instructions during mobile setup to the point where you can obtain the google-services.json and GoogleService-Info.plist configuration files. The Flutter project is already set up with all the necessary SDK dependencies.

sw-dev-code commented 4 years ago

@devunwired Thank you. I've downloaded the google-services.json and copied it. How can deploy app to my phone and install it?

devunwired commented 4 years ago

The app is built using Flutter, so you can deploy to an Android or iOS device using the Flutter SDK tools. I would recommend the Get Started guide to get the SDK installed and the Test Drive guide shows you how to run an app on your connected device via the Terminal with flutter run.

chakshujain commented 4 years ago

I've followed firebase setup to the point only where i obtained google-services.json file but it is still showing the same error . /home/ck/.gradle/caches/transforms-1/files-1.1/support-compat-28.0.0.aar/9e33028a37e6b11fe4991f1b7c19ebd6/res/values/values.xml: AAPT: error: resource android:attr/fontVariationSettings not found.

/home/ck/.gradle/caches/transforms-1/files-1.1/support-compat-28.0.0.aar/9e33028a37e6b11fe4991f1b7c19ebd6/res/values/values.xml: AAPT: error: resource android:attr/ttcIndex not found.