-
Notifications
You must be signed in to change notification settings - Fork 423
Is there any way to use it with Maven instead of Gradle? #5
Comments
There shouldn't be any problem with maven. I guess the reason of your problem is not adding the namespace line to your layout. You should add this line to be able to use "flatui" name space. xmlns:flatui="http://schemas.android.com/apk/res-auto" If you open the sample application's layout file you'll see there is this line. Also there is another thing. The reason of using Gradle is that assets files are also available in the library. (like fonts in assets folder) While using Maven you'll not be able to get these fonts. So the thing you have to do is copying these font files and putting into your project's assets folder. (If you want to use one of these fonts) |
Thank you eluleci, I'll try it. In this case a used: <LinearLayout xmlns:flatui="http://schemas.android.com/apk/res/android"> Instead of: <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:flatui="http://schemas.android.com/apk/res-auto"> I think that I used it in one of my tries but I'm not so sure and I'll try. |
Could you make it work? I'll close the issue if you could solve it. |
@rodoufu could you make it work? I couldnt make it work with Maven. |
Yes right. You need to have the android namespace too (I didn't realise that you just used flatui namespace). I hope it works as I said. But also you'll have problems with the resource files. So don't forget to copy them too. |
@beydogan unfortunately I coudn't. |
Hi,
My projects use maven and I put the dependencie bellow in the pom.xml:
So, my layout file is something like that:
My project doesn't work, it has some errors:
Error parsing XML: unbound prefix
Attribute is missing the Android namespace prefix
I really liked this library and I'd like too much to use it with maven.
Thank you,
The text was updated successfully, but these errors were encountered: