Android Question (SOLVED)...No .xml file is generated...

tigrot

Well-Known Member
Licensed User
Longtime User
B4X:
package libgsm;

import anywheresoftware.b4a.BA.ShortName;
import anywheresoftware.b4a.BA.Version;


@Version(1.0f)
@ShortName("libgsm")





class libgsm  {
    libgsm() {
        /* up convert original compression parameter for this codec */
        System.loadLibrary("gsm_jni");
    }

   
    public native int open();
    public native int decode(byte encoded[], short lin[], int size);
    public native int encode(short lin[], int offset, byte encoded[], int size);
    public native void close();
   
    public int openx()
    {
    return open();       
    }
    public int decodex(byte encoded[], short lin[], int size)
    {
    return decode( encoded,  lin, size);       
    }
   
    public  int encodex(short lin[], int offset, byte encoded[], int size)
   
    {
        return encode(lin,  offset,  encoded, size);       
        }
       
    public void closex()
    {
    close();       
    }
   
    }

I have this code referencing a native library. when I try to compile xml I get:

B4X:
<?xml version="1.0" encoding="UTF-8"?>
<root>
    <doclet-version-NOT-library-version>1.04</doclet-version-NOT-library-version>
</root>

and in eclipse I get:

B4X:
Loading source files for package libgsm...
Constructing Javadoc information...
[-doclet, BADoclet]
[-docletpath, C:\mieifiles\eclipse\workspace\simplelibrarycompiler]
[-sourcepath, C:\mieifiles\eclipse\workspace\sipcvtt\src]
[-classpath, C:\Program Files (x86)\Anywhere Software\Basic4android38\Libraries\Core.jar;C:\Program Files (x86)\Android\android-sdk\platforms\android-8\android.jar;C:\Program Files (x86)\Anywhere Software\Basic4android38\Libraries\B4AShared.jar]
[-public]
[-b4ATarget, C:\mieifiles\eclipse\workspace\sipcvtt\libgsm.xml]
starting....
finish: C:\mieifiles\eclipse\workspace\sipcvtt\libgsm.xml
warning: no version field.

The warning seems to stop compilation. What is wrong? Seems that the public method are not seen by compiler and when I use this library no method is shown.

Thank you for help!

Mauro
 
Top