this post was submitted on 30 Oct 2024
10 points (81.2% liked)
Programming
17303 readers
48 users here now
Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!
Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.
Hope you enjoy the instance!
Rules
Rules
- Follow the programming.dev instance rules
- Keep content related to programming in some way
- If you're posting long videos try to add in some form of tldr for those who don't want to watch videos
Wormhole
Follow the wormhole through a path of communities [email protected]
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
I've tested it on 3 real phones, I imported the vector graphics from the google database of default vector graphics and followed the android studio docs page on how to import images, I used the srcCompat attribute and added vectordrawable to the build.gradle.kts.
How do I share my project settings? Is that a file?
Share your gradle.kts and a screenshot from this menu:
File>ProjectStructure ( https://developer.android.com/studio/projects#ProjectStructure )
Tap for Kotlin script
plugins { alias(libs.plugins.android.application) alias(libs.plugins.kotlin.android) }
android { namespace = "org.jackgreenearth.materialmusic" compileSdk = 35
}
dependencies {
}
I'll look into it on the weekend in detail if nobody else can spot the issue until then.
So far, everything looks normal and I didn't see anything in the log at a glance. (besides a bunch of res related warnings that I am not sure about)
Are the images in your res folder / do you see them when you go to
View > Tool Windows > Resource Manager
?I do see them when I go to the resource manager