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

Update Getting Started instructions for Android #52

Conversation

louis-antonopoulos
Copy link

This PR:

Without a package reference in MainActivity.kt, building the project leads to two errors that look like this:

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

Without a `package` reference, building the project leads to two errors that look like this:

```
e: file:///path/to/application/MyApplication/app/src/main/java/com/example/myapplication/MainActivity.kt:8:24
Unresolved reference: R
```
Comment on lines +58 to +60
// use the namespace of your application as listed in the app-level `build.gradle.kts` under `android / namespace`:
package com.example.myapplication

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A different approach than adding this line with the comment would be to change the instructions on 55.

So instead of Finally, open MainActivity.kt and replace the class with this code:, it could say something like

Finally, open MainActivity.kt and replace everything in the class **except the package reference** with this code:

@jayohms
Copy link
Contributor

jayohms commented Feb 22, 2025

This was addressed in #72

@jayohms jayohms closed this Feb 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Getting Started instructions for Android cause build failure
2 participants