mapbox / mapbox-navigation-android-examples

Other
55 stars 46 forks source link

Update android auto example #164

Closed kmadsen closed 2 years ago

kmadsen commented 2 years ago

Separate but similar to android automotive https://github.com/mapbox/mapbox-navigation-android-examples/pull/165

This android-auto-app shows how to sync with drop-in-ui.

kmadsen commented 2 years ago

EDIT: this was caused by bumping compileSdkVersion 31 to compileSdkVersion 33

* What went wrong:
Execution failed for task ':android-auto-app:androidDependencies'.
> Could not resolve all artifacts for configuration ':android-auto-app:debugRuntimeClasspath'.
   > Could not resolve com.mapbox.navigation:android:2.9.0-rc.2.
     Required by:
         project :android-auto-app > com.mapbox.navigation:ui-androidauto:0.16.0
      > Could not resolve com.mapbox.navigation:android:2.9.0-rc.2.
         > Could not get resource 'https://plugins.gradle.org/m2/com/mapbox/navigation/android/2.9.0-rc.2/android-2.9.0-rc.2.pom'.
            > Could not GET 'https://jcenter.bintray.com/com/mapbox/navigation/android/2.9.0-rc.2/android-2.9.0-rc.2.pom'.
               > Read timed out

Weird to run into this

dzinad commented 2 years ago

EDIT: this was caused by bumping compileSdkVersion 31 to compileSdkVersion 33

Really? Judging by "Read timed out" exception message I'd say there was a problem with maven. Otherwise it would say something about incompatibility or sth but s far as I know compile and target versions don't really produce incompatibilities.

Zayankovsky commented 2 years ago

EDIT: this was caused by bumping compileSdkVersion 31 to compileSdkVersion 33

Really? Judging by "Read timed out" exception message I'd say there was a problem with maven. Otherwise it would say something about incompatibility or sth but s far as I know compile and target versions don't really produce incompatibilities.

Yeah, I don't think it is related. What we should actually do is remove jcenter from repositories in gradle scripts.

kmadsen commented 2 years ago

Yeah, I don't think it is related. What we should actually do is remove jcenter from repositories in gradle scripts.

Do you want to do it @Zayankovsky ? I tried bumping and when it didn't work I reverted, but really think about how to fix it. We need to remove jcenter and if that also helps us bump to 33, double win!

Zayankovsky commented 2 years ago

Do you want to do it @Zayankovsky ? I tried bumping and when it didn't work I reverted, but really think about how to fix it. We need to remove jcenter and if that also helps us bump to 33, double win!

168