Reputation: 1827
I have an android project that contains only a .java file. This java file extends the class Services.
I am trying to build a jar file using * *Build Fat JAR**.
I did the following:
PROBLEMS:
The jar icon has a red x mark in front of it. When adding the jar inside another project and when running the application (creating apk) I get the following:
Dx trouble writing output: invalid header field. Conversion to Dalvik format failed with error 3
What am I doing wrong? Need some help.
Thank yiu
Upvotes: 1
Views: 334
Reputation: 161
To Create a JAR from a Android project follow below steps
Project -> Properties -> Android -> Check 'Is Library' option.
Now build Project and get jar in 'bin' folder.
Upvotes: 1