Closed 0Flush0 closed 2 years ago
@0Flush0 hey flush, the import looks good. What View did you try to import? Did you use the correct path that includes xml
like this?
<nl.dionsegijn.konfetti.xml.KonfettiView
android:id="@+id/konfettiView"
android:layout_width="match_parent"
android:layout_height="match_parent" />
@DanielMartinus Thank you for your quick reply, im am using the correct path i think. Do i have to import the library in xml? This is the error: Class referenced in the layout file, "nl.dionsegijn.konfetti.xml.KonfettiVew", was not found in the project or the libraries. Cannot resolve class nl.dionsegijn.konfetti.xml.KonfettiVIew
(Sry for bad english)
Strange, would you be able to provide a sample project? I have no issues here. Tried old and new projects and all are able to import the KonfettiView
@DanielMartinus Thanks again for the reply, i have created a test repository if you want to look into my issue. Maybe its just me being incompetent and i hope i dont have wasted your time . https://github.com/0Flush0/test Sry for bad engish again :)
No worries.
I opened the project and don't encounter any issues. Looking at the list of external libraries everything seems to be fine.
Do you see any gradle build errors in Android Studio maybe?
When running a clean build i get some issues, the report might help, but i am not seeing threw this:
Lint won't show any issues related to this. Does your gradle console output any issue?
I have found a promising issue, that could relate to this problem. There is a note, that some input files use or override a deprecated API:
Task :app:mergeReleaseAssets Note: Some input files use or override a deprecated API. Note: Recompile with -Xlint:deprecation for details.
I don't think that is the issue. If you run ./gradlew build
in the terminal of the folder of your project can you share the error that's shown?
I'm getting this same issue. I import the library successfully in build.gradle, but when I try and add this to the xml it can't find it.
<nl.dionsegijn.konfetti.xml.KonfettiView
android:id="@+id/konfettiView"
android:layout_width="match_parent"
android:layout_height="match_parent" />
Were you able to solve the issue? (I'm using an M1 Macbook if that has anything to do with it?)
I am sorry, but i could'nt solve the issue at the time and it was just not worth the hassle for me, to continue searching for a solution. Hope you find one :)
i have added the implementation to my build.gradle, but in xml the KonfettiView is not found: These are my dependencies: dependencies {
}