web3j icon indicating copy to clipboard operation
web3j copied to clipboard

Web3j work only on Android 9 and above

Open FaridBeiranvand opened this issue 4 years ago • 7 comments

I try to use your library on Android starting minimum api level 19.

java.lang.NoSuchMethodError: No interface method getTypeName()Ljava/lang/String; in class Ljava/lang/reflect/Type; or its super classes (declaration of 'java.lang.reflect.Type' appears in /system/framework/core-oj.jar)

There are lots of methods like " getTypeName, parameters" which is available in API level 28 only.

For example, in TypeReference.java, in: getClassType method you used getTypeName() which is available in API level 28 only. please fix.thanks

FaridBeiranvand avatar Sep 28 '20 05:09 FaridBeiranvand

It's very important, I have this problem, too.

MosayebG avatar Dec 13 '20 11:12 MosayebG

confirm

maxxx avatar Sep 21 '21 06:09 maxxx

Has this issue been resolved yet?. I still get the issue on android 7 with the newest version(4.8.7)

tuannm2 avatar Jan 14 '22 07:01 tuannm2

I update to org.web3j:core:4.8.8-android,same problem too.

ashu0000008 avatar Apr 08 '22 03:04 ashu0000008

me too.

Mike-bel avatar Apr 20 '22 06:04 Mike-bel

Any workaround when waiting the official release

toidv avatar May 12 '22 11:05 toidv

There are some limitations here with Android support, are there any plans for you upgrade to more recent Android versions?

mohamedelshami avatar Oct 21 '22 16:10 mohamedelshami