Code Monkey home page Code Monkey logo

Comments (18)

tkrause avatar tkrause commented on July 26, 2024

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.

mikepenz avatar mikepenz commented on July 26, 2024

@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.

tkrause avatar tkrause commented on July 26, 2024

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.

mikepenz avatar mikepenz commented on July 26, 2024

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.

tkrause avatar tkrause commented on July 26, 2024

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.

mikepenz avatar mikepenz commented on July 26, 2024

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.

tkrause avatar tkrause commented on July 26, 2024

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.

mikepenz avatar mikepenz commented on July 26, 2024

tried the pull request. but if i place the font into /src/main/assets it won't show any icons

from android-iconify.

tkrause avatar tkrause commented on July 26, 2024

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.

mikepenz avatar mikepenz commented on July 26, 2024

@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.

tkrause avatar tkrause commented on July 26, 2024

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.

dchatry avatar dchatry commented on July 26, 2024

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.

mikepenz avatar mikepenz commented on July 26, 2024

@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.

artemtkachenko avatar artemtkachenko commented on July 26, 2024

Got the same issue.
Replace "IconTextView" with "android.widget.IconTextView" in xml layout.

And it works fine.

from android-iconify.

 avatar commented on July 26, 2024

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.

mikepenz avatar mikepenz commented on July 26, 2024

@k3v1n4ud3 ok thanks

from android-iconify.

MatthewBooth avatar MatthewBooth commented on July 26, 2024

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.

JoanZapata avatar JoanZapata commented on July 26, 2024

#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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.