Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

build failed Google io 2018 (iosched)

Download the project of Google IO 2018 (iosched), try to compile it in Android Studio 3.3 Canary 7, also the probe in 3.2 RC1. But I get the following error:

error: resource style/TextAppearance.MaterialComponents.BottomNavigationView.Colored (aka com.google.samples.apps.iosched:style/TextAppearance.MaterialComponents.BottomNavigationView.Colored) not found.

Checking the file style. xml, it is observed that fails to find the style TextAppearance.MaterialComponents.BottomNavigationView.Colored.

<style name="TextAppearance.IOSched.BottomNavigationView" parent="@style/TextAppearance.MaterialComponents.BottomNavigationView.Colored">
        <item name="android:fontFamily">@font/google_sans</item>
        <item name="android:textColor">@color/bottom_nav_item</item>
</style>

Also check that the Google Material components dependency if implemented.

implementation "com.google.android.material:material:$rootProject.materialVersion"

I can't understand why it might be making this mistake.

like image 658
Juanes30 Avatar asked Aug 24 '18 19:08

Juanes30


1 Answers

you can see here https://github.com/google/iosched/issues/285#issuecomment-416114763

you can use the Android Studio Stable 3.2

use the last dependencies.

in the file iosched/gradle.properties,mofiy

androidGradlePluginVersion = '3.2.0'
materialVersion = '1.0.0'
kotlinVersion = '1.2.51'

in the file iosched/mobile/src/main/res/values/styles.xml

change

@style/TextAppearance.MaterialComponents.BottomNavigationView.Colored

to

@style/Widget.MaterialComponents.BottomNavigationView.Colored
like image 100
androidmalin Avatar answered Oct 17 '22 20:10

androidmalin