BirjuVachhani / locus-android

An Awesome Kotlin Location library to retrieve location merely in 3 lines of code
https://birju.dev/posts/retrieve-location-in-just-3-lines-android/
Apache License 2.0
358 stars 40 forks source link

Don't build with jetpack compose #63

Closed felipeleon73 closed 2 years ago

felipeleon73 commented 2 years ago

Describe the bug Jetpack compose app dont'build with Locus. Errors: AAPT: error: style attribute 'attr/colorAccent (aka com.example.testapplication:attr/colorAccent)' not found. AAPT: error: style attribute 'attr/colorPrimary (aka com.example.testapplication:attr/colorPrimary)' not found. AAPT: error: style attribute 'attr/colorPrimaryDark (aka com.example.testapplication:attr/colorPrimaryDark)' not found.

To Reproduce Steps to reproduce the behavior: 1- Create empty compose app 2- Configure use of Locus 3- Try to build

BirjuVachhani commented 2 years ago

This error appears when appcompat and material versions are mismatched. Make sure your app's build.gradle file has this dependency.

implementation "com.google.android.material:material:1.4.0"
felipeleon73 commented 2 years ago

Perfect. Now works.