Skip to content
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

Getting Started instructions for Android cause build failure #51

Open
louis-antonopoulos opened this issue Oct 24, 2024 · 1 comment · May be fixed by #52
Open

Getting Started instructions for Android cause build failure #51

louis-antonopoulos opened this issue Oct 24, 2024 · 1 comment · May be fixed by #52

Comments

@louis-antonopoulos
Copy link

These lines in the Getting Started instructions cause two build failures when attempting to run the application:

e: file:///path/to/application/MyApplication/app/src/main/java/com/example/myapplication/MainActivity.kt:8:24 
Unresolved reference: R

The issue is that the package reference at the top of the file is being removed by the instructions to replace the entire file with the example code.

The fix to the instructions linked above would look something like this:

Finally, open `MainActivity.kt` and replace the class with this code:
// use the namespace of your application as listed in the app-level build.gradle.kts under android / namespace:
package com.example.myapplication

import android.os.Bundle
import dev.hotwire.navigation.activities.HotwireActivity
import dev.hotwire.navigation.navigator.NavigatorConfiguration
@louis-antonopoulos
Copy link
Author

Will be opening a fix momentarily...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

1 participant