Closed sytolk closed 8 years ago
what are your dependencies? do you have a custom applicationId set? do you use proguard? Do you have any log output?
this is my dependencies
<dependency>
<groupId>android</groupId>
<artifactId>android</artifactId>
<version>6.0_r2</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>com.google.android.gms</groupId>
<artifactId>play-services-location</artifactId>
<version>${play-service-version}</version>
<type>aar</type>
<exclusions>
<exclusion>
<groupId>com.google.android.gms</groupId>
<artifactId>play-services-base</artifactId>
</exclusion>
<exclusion>
<groupId>com.google.android.gms</groupId>
<artifactId>play-services-maps</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.google.android.gms</groupId>
<artifactId>play-services-base</artifactId>
<version>${play-service-version}</version>
<type>aar</type>
<exclusions>
<exclusion>
<groupId>com.android.support</groupId>
<artifactId>support-v4</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.google.android.gms</groupId>
<artifactId>play-services-gcm</artifactId>
<version>${play-service-version}</version>
<type>aar</type>
</dependency>
<dependency>
<groupId>com.google.android.gms</groupId>
<artifactId>play-services-plus</artifactId>
<version>${play-service-version}</version>
<type>aar</type>
</dependency>
<dependency>
<groupId>com.android.support</groupId>
<artifactId>appcompat-v7</artifactId>
<version>23.1.1</version>
<type>aar</type>
</dependency>
<dependency>
<groupId>com.android.support</groupId>
<artifactId>design</artifactId>
<version>23.1.1</version>
<type>aar</type>
</dependency>
<dependency>
<groupId>pl.charmas.android</groupId>
<artifactId>android-reactive-location</artifactId>
<version>0.8</version>
<type>aar</type>
<exclusions>
<exclusion>
<groupId>com.google.android.gms</groupId>
<artifactId>play-services-location</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.taxi-bulgaria.map</groupId>
<artifactId>mapsforge</artifactId>
<type>aar</type>
<version>0.6.0</version>
<exclusions>
<exclusion>
<groupId>android.support</groupId>
<artifactId>compatibility-v4</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.mobsandgeeks</groupId>
<artifactId>android-saripaar</artifactId>
<version>1.0.7-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.androidannotations</groupId>
<artifactId>androidannotations</artifactId>
<version>3.3.2</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.androidannotations</groupId>
<artifactId>androidannotations-api</artifactId>
<version>3.3.2</version>
</dependency>
<dependency>
<groupId>ch.acra</groupId>
<artifactId>acra</artifactId>
<version>4.7.0</version>
<type>aar</type>
</dependency>
<dependency>
<groupId>de.greenrobot</groupId>
<artifactId>eventbus</artifactId>
<version>2.4.1</version>
</dependency>
<dependency>
<groupId>com.getbase</groupId>
<artifactId>floatingactionbutton</artifactId>
<version>1.10.1</version>
<type>aar</type>
</dependency>
<dependency>
<groupId>com.facebook.android</groupId>
<artifactId>facebook-android-sdk</artifactId>
<version>4.5.0</version>
<type>aar</type>
<exclusions>
<exclusion>
<groupId>com.android.support</groupId>
<artifactId>support-v4</artifactId>
</exclusion>
<exclusion>
<groupId>com.android.support</groupId>
<artifactId>multidex</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.github.nicolasjafelle</groupId>
<artifactId>paginglistview</artifactId>
<version>1.3</version>
<type>aar</type>
</dependency>
<dependency>
<groupId>it.sephiroth.android.library.targettooltip</groupId>
<artifactId>target-tooltip-library</artifactId>
<version>1.3.11</version>
<type>aar</type>
<exclusions>
<exclusion>
<groupId>com.android.support</groupId>
<artifactId>appcompat-v7</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.mikepenz</groupId>
<artifactId>iconics-core</artifactId>
<version>2.5.5</version>
<type>aar</type>
<exclusions>
<exclusion>
<groupId>com.android.support</groupId>
<artifactId>appcompat-v7</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>com.mikepenz</groupId>
<artifactId>google-material-typeface</artifactId>
<!--<artifactId>material-design-iconic-typeface</artifactId>-->
<version>2.2.0.1</version>
<type>aar</type>
<exclusions>
<exclusion>
<groupId>Android-Iconics</groupId>
<artifactId>library-core</artifactId>
</exclusion>
</exclusions>
</dependency>
I dont have applicationId only package name in my manifest. I have in my proguard.cnf
# Iconics Exclude R from ProGuard to enable the font addon auto detection
-keep class .R
-keep class **.R$* {
<fields>;
}
-keep class com.mikepenz.google_material_typeface_library.GoogleMaterial { *; }
In log its have only: 01-28 18:38:51.593 27825-27825/com.opentaxi.android I/AppCompatDelegate﹕ The Activity's LayoutInflater already has a Factory installed so we can not install AppCompat's 01-28 18:38:51.593 27825-27825/com.opentaxi.android E/Iconics﹕ Wrong icon name: gmd_ac_unit
Actually I cant run my application without proguard its have many methods: Error:Android Dex: [TaxiAndroidOpen] com.android.dex.DexIndexOverflowException: method ID not in [0, 0xffff]: 65536
maybe this is proguard issue..
@sytolk if it can not automatically detect the font, just register it before first usage (or within the Application)
So it will be Iconics.registerFont(new GoogleMaterial())
I have add it but its not change anything
The problem is in my maven project it not copy assets if I copy fonts/material.design.ttf in my project assets dir and icons appears.. only Button dont have icon in text
<Button
android:layout_width="160dp"
android:layout_height="60dp"
android:text="{gmd-ac-unit} Button"
android:textAllCaps="false"
android:layout_gravity="center|start"/>
but it not exist in GoogleMaterial.java and in log its have: Wrong icon name: gmd_ac_unit
The question is why in the same maven project .ttf font in assets dir is included with Iconify lib but in Iconics not ??
@sytolk I do not know sorry. As i use the gradle build system from Android I can only can support and test the official one.
As of your pom.xml
you use the wrong dependency. The correct one for the GoogleMaterial
font is the following:
compile 'com.mikepenz:google-material-typeface:2.1.0.1.original@aar'
I have try to switch from Iconify (XML icons is missing) but in this library Icons not displayed in API16 this is the screenshot with emulator API 23 icons displayed but:
The icon is gmd_3d_rotation but it is displayed unknown icon. Only the color is the same BLACK.
2.The button and red icon is automatically created in XML. The color is the same but the icon is gmd-speaker but its appear the same icon like the black one..
I have use AA (androidannotations) too.
I have try example application and it works in the same emulators but don`t have any idea why Iconics not displayed in my application its have not exceptions.