Note: android.support.v4.text.ICUCompatIcs: cannot find dynamically referenced class libcore.icu.ICU

Today I started receiving a message with the latest versions of Android Build Tools (ABT) v19.0.3. At first glance, I thought this might be a problem with ABT. However, a closer investigation reveals that this message:

android.support.v4.text.ICUCompatIcs: can't find dynamically referenced class libcore.icu.ICU 

displayed only when using Proguard. The answers on the net did not give me a solution. Perhaps this is only a problem with Proguard (the version that I use bundled with the Android SDK v22.3).

I added the following directives to the proguard-project.txt file, but that doesn’t matter:

 -keep interface android.support.v4.** { *; } -keep class android.support.v4.** { *; } 

Does anyone else come across this post and have a possible solution? Perhaps Eric from Proguard could shed light on this issue. Does Proguard require code cleaning? I am interested to know the solution.

+8
android proguard
source share
1 answer

The note says that the support class uses reflection to access the runtime class, which is not in the target runtime. In general, this may be a sign of compatibility issues. In this case, it is harmless; Support library developers accurately use reflection to avoid problems with binding to different runtime environments. You can suppress a note with:

 -dontnote android.support.** 
+18
source share

All Articles