Comments (18)
Forgot to mention, I am using Gradle with the following in my build.gradle in the app folder.
android {
compileSdkVersion 19
buildToolsVersion '20.0.0'
defaultConfig {
applicationId "net.codesector.Mileage"
minSdkVersion 15
targetSdkVersion 19
versionCode 1
versionName "1.0"
}
buildTypes {
release {
runProguard false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}
dependencies {
compile fileTree(dir: 'libs', include: ['*.jar'])
compile 'com.joanzapata.android:android-iconify:1.0.6'
}
from android-iconify.
@tkrause the newest commit shouldn't cause this issue because it won't update the version which is deployed at maven. I see you still use the version 1.0.6.
Have you updated build-tools, android studio, or something like this?
from android-iconify.
Yes I did update Android Studio to the 0.8.6 release recently could be the cause of the issue I am using build tools version 20.0.0 as well.
from android-iconify.
So i think this is the cause. Try to update to the latest versions of both, perhaps they fix it for you
from android-iconify.
Updated to build tools 21.0.2 (newest version) as well as Android Studio 0.8.9 (newest version) still receiving the same error it is unable to find the typeface file. Must be a problem with the code which loads the typeface.
from android-iconify.
Interesting. There's a seperate pull-request which handles the location of the typeface file:
#58
can you try if this fixes your issue?
from android-iconify.
That pull request works however you have to put the typeface file into the /src/main/assets folder of your actual project instead of keeping it in the compiled JAR file which obviously is preferred but it's better than it not working at all so for now I'll just use that.
from android-iconify.
tried the pull request. but if i place the font into /src/main/assets it won't show any icons
from android-iconify.
Well the pull request changes the path to be the context of the view. So you need to put the font into /src/main/assets of the project your using android-iconify on.
from android-iconify.
@tkrause tried it with the sample app.
so we can't merge it if the user would have to add the font to his project.
from android-iconify.
Yes I understand that and it makes no sense to merge it. However, it fixes it for me and I'm fine with putting the font in my directory in order to get it to work. But I will happily try other things if you have any ideas.
from android-iconify.
Got the exact same issue here with the latest version of Android Studio/Build tools. Is there any fix yet ? (other than using the pull request and putting the font in assets)
from android-iconify.
@Rivals not really. This pull request requires the dev to include the font within his app which is not a good idea.
from android-iconify.
Got the same issue.
Replace "IconTextView" with "android.widget.IconTextView" in xml layout.
And it works fine.
from android-iconify.
I'm using the 1.0.9 version of the library and replacing "IconTextView" with "android.widget.IconTextView" in my xml layouts as @artemtkachenko suggested fixed the problem for me.
from android-iconify.
@k3v1n4ud3 ok thanks
from android-iconify.
This is still a problem when running the emulator. Works fine on my device, but in the emulator this error is thrown all the time. If #58 doesn't break anything,. I see no reason not to have merged it, if it fixed this issue.
from android-iconify.
#58 breaks retrocompat.
Anyway, just wait for Iconify 2.0.0, it'll fix this issue definitely.
Should be available soon.
from android-iconify.
Related Issues (20)
- Expose TextPaint in IconDrawable
- Spinning drawables HOT 2
- Notification builder - setSmallIcon is it possible?
- Google Material Update? HOT 1
- Parser fails on } { sequence
- Font Awesome Not Update
- is it possible to do animate on these icon
- How to preview the effect in the development period?
- iconify about android8.0
- Couldn't working java 8. FontAwesomeIcons.values() unable to resolve static method
- Importing Iconify into Android to Use as a Dependency
- can not support com.android.support:appcompat-v7:27.1.1 HOT 2
- Cut off part of the icon - fa_taxi
- Crashed when redering incomplete bracket.
- Wrong with WeathericonsIcons.java:527
- can not support com.android.support:appcompat-v7:28.0.0 HOT 2
- Android app not available anymore
- The font awesome names aren't consistent with the standard name identifiers.
- Duplicate classes when importing this project into mine HOT 5
- Shemul
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from android-iconify.