NativeScript / android-dts-generator

A tool that generates TypeScript declaration files (.d.ts) from Jars
90 stars 23 forks source link

Invalid byte tag in constant pool: 19 #47

Open govi2010 opened 5 years ago

govi2010 commented 5 years ago

Hello friends , I am getting following error while generating typings.

java -jar build/libs/dts-generator.jar -input ../jars/opencv-platform-4.0.1-1.5.jar
Android d.ts Generator Version : 2.0.0
Exception in thread "main" org.apache.bcel.classfile.ClassFormatException: Invalid byte tag in constant pool: 19
    at org.apache.bcel.classfile.Constant.readConstant(Constant.java:161)
    at org.apache.bcel.classfile.ConstantPool.<init>(ConstantPool.java:69)
    at org.apache.bcel.classfile.ClassParser.readConstantPool(ClassParser.java:235)
    at org.apache.bcel.classfile.ClassParser.parse(ClassParser.java:143)
    at com.telerik.dts.JarFile.readJar(JarFile.java:45)
    at com.telerik.dts.Generator.loadJavaClasses(Generator.java:98)
    at com.telerik.dts.Generator.start(Generator.java:38)
    at com.telerik.Main.main(Main.java:37)
fhackenb commented 5 years ago

@govi2010 I just ran into this same error. Make any progress resolving it?

govi2010 commented 5 years ago

No.

akshaydoiphode commented 5 years ago

Any Update on this.? I am facing same Issue while building my Project

akshaydoiphode commented 5 years ago

@EddyVerbruggen Can You help us in This.?

akshaydoiphode commented 5 years ago

@govi2010 Have you got any solution.?

vtrifonov commented 5 years ago

@akshaydoiphode where do you get opencv-platform-4.0.1-1.5.jar from?

vtrifonov commented 5 years ago

nevermind I found it

vtrifonov commented 5 years ago

can you try again with the latest version

akshaydoiphode commented 5 years ago

Latest version mean.? Actually My all projects are donwith nativescript 4 and I installed Nativescript 4, JDK 9 and Node JS 8 and I tried building my projec.

Do you have any solution on "Invalid Byte Tag in Contant Pool:19" Issue.?

Thanks and Regards,

On Thu, 10 Oct 2019 at 07:47, Vasil Trifonov notifications@github.com wrote:

can you try again with the latest version

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/NativeScript/android-dts-generator/issues/47?email_source=notifications&email_token=AHDEAQFQN3D2PHH4UNW33ADQN457VA5CNFSM4H422I22YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEA4T7HI#issuecomment-540622749, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHDEAQFKPJGRMMVGGRPHUATQN457VANCNFSM4H422I2Q .

-- Thanks & Regards, Akshay Ajit Doiphode. +91-9970571398.

vtrifonov commented 5 years ago

How are you starting the android-dts-generator?

akshaydoiphode commented 5 years ago

I am not getting your point. What are you talking about?

On Fri, 11 Oct 2019 at 21:39, Vasil Trifonov notifications@github.com wrote:

How are you starting the android-dts-generator?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/NativeScript/android-dts-generator/issues/47?email_source=notifications&email_token=AHDEAQEXK4TWO7ZYAEBVR43QOCQKDA5CNFSM4H422I22YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEBAO6NY#issuecomment-541126455, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHDEAQDJYHT4QO2NGFLTZS3QOCQKDANCNFSM4H422I2Q .

-- Thanks & Regards, Akshay Ajit Doiphode. +91-9970571398.

vtrifonov commented 5 years ago

You’ve got this error while building your nativescript project for android with ‘tns build android’? And you are using nativescript 4.0?

akshaydoiphode commented 5 years ago

Yes, I am using nativscript 4 and I am getting error while 'tns run android'

On Sat, Oct 12, 2019, 5:25 PM Vasil Trifonov notifications@github.com wrote:

You’ve got this error while building your nativescript project for android with ‘tns build android’ ? And you are using nativescript 4.0?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/NativeScript/android-dts-generator/issues/47?email_source=notifications&email_token=AHDEAQC73URWKMOGCPE2433QOG3MTA5CNFSM4H422I22YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEBB5WMY#issuecomment-541317939, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHDEAQC7GR67HITCIO7SV5LQOG3MTANCNFSM4H422I2Q .