-
Notifications
You must be signed in to change notification settings - Fork 46
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unresolved reference:databinding #143
Comments
I too have this issue. I must say, the documentation and examples are absolutely appaling. |
@ShaunRigby @olgacarmona Not sure if you are both still tracking on this issue. My team and I ran into this issue as well but it was just a bit of unfamiliarity with Kotlin / Java. Still though, the docs should be much better than they are. I used this guide about databinding to successfully build the turn by turn into our application. Hope this helps! https://appdevnotes.com/android-databinding-tutorial-for-beginners-in-kotlin/ |
@mleong25 How were you able to implement using that. I tried using that but it just shows an empty white screen. Here's our activity import android.annotation.SuppressLint class MainActivity : AppCompatActivity() {
// play the instruction via fallback text-to-speech engine
// remove already consumed file to free-up space
// not handled
// update location puck's position on the map // update camera position to account for new location // if this is the first location update the activity has received,
// update the camera position to account for the progressed fragment of the route // draw the upcoming maneuver arrow on the map // update top banner with maneuver instructions // update bottom trip progress summary
// generate route geometries asynchronously and render them // update the camera position to account for the new route // remove the route reference from camera position evaluations
// start the trip session to being receiving location updates in free drive
// initialize Navigation Camera // make sure to use the same DistanceFormatterOptions across different features // initialize maneuver api that feeds the data to the top banner maneuver view // initialize bottom progress view // initialize voice instructions api and the voice instruction player // initialize route line, the withRouteLineBelowLayerId is specified to place // initialize maneuver arrow view to draw arrows on the map // load map style // initialize view interactions // set initial sounds button state
// comment out the location engine setting block to disable simulation // initialize location puck
// execute a route request
// no impl
// set routes, where the first route in the list is the primary route that // show UI elements // move the camera to overview when new route is available
// clear // stop simulation // hide UI elements And this is our xml
|
Hi,
I am trying to use the turn-by-turn navigation example, but I cannot resolve the reference:
import com.mapbox.navigation.examples.databinding.MapboxActivityTurnByTurnExperienceBinding
I am having a hard time just to fix this. Could anyone help me, please?
Here is gradle (project):
buildscript {
ext.kotlin_version = '1.7.20-RC'
repositories {
google()
mavenCentral()
}
allprojects {
repositories {
google()
maven { url "http://oss.sonatype.org/content/repositories/snapshots/" }
maven { url 'https://oss.jfrog.org/artifactory/oss-snapshot-local/' }
maven {
url 'https://api.mapbox.com/downloads/v2/releases/maven'
authentication {
basic(BasicAuthentication)
}
credentials {
username = "mapbox"
password = System.getenv("MAPBOX_DOWNLOADS_TOKEN") ?: project.property("MAPBOX_DOWNLOADS_TOKEN") as String
}
}
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
gradle (app)
plugins {
id 'com.android.application'
}
apply plugin: 'kotlin-android'
android {
compileSdk 32
}
dependencies {
}
repositories {
mavenCentral()
}
settings.gradle
dependencyResolutionManagement {
dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.PREFER_SETTINGS)
repositories {
google()
mavenCentral()
jcenter() // Warning: this repository is going to shut down soon
maven {
url 'https://api.mapbox.com/downloads/v2/releases/maven'
authentication {
basic(BasicAuthentication)
}
credentials {
// Do not change the username below.
// This should always be
mapbox
(not your username).username = "mapbox"
// Use the secret token you stored in gradle.properties as the password
password = "pass-"
}
}
}
}
}
rootProject.name = "testenavegacao"
include ':app'
The text was updated successfully, but these errors were encountered: