Hi evrybody !
I am creating an extension that uses an external library. the librarie is proj4j (https://github.com/locationtech/proj4j) that allows converting coordinates between the differents plane state systems and geographic systems. The extension I tested in eclipse and it worked perfect. I think I have linked the library well in my code but still the ANT compiler does not seem to understand the classes.
my funtion in Eclipse:
my extension code:
the error Runtime:
AndroidRuntime:
[mkdir] Created dir: D:\AI2 PROYECTOS\CrearExtensiones\appinventor-sources\appinventor\components\build\classes\AndroidRuntime
[javac] Compiling 292 source files to D:\AI2 PROYECTOS\CrearExtensiones\appinventor-sources\appinventor\components\build\classes\AndroidRuntime
[javac] warning: [options] bootstrap class path not set in conjunction with -source 1.7
[javac] Note: Wrote file file:/D:/AI2%20PROYECTOS/CrearExtensiones/appinventor-sources/appinventor/components/build/classes/AndroidRuntime/simple_components.json
[javac] Note: Wrote file file:/D:/AI2%20PROYECTOS/CrearExtensiones/appinventor-sources/appinventor/components/build/classes/AndroidRuntime/simple_components.txt
[javac] Note: Wrote file file:/D:/AI2%20PROYECTOS/CrearExtensiones/appinventor-sources/appinventor/components/build/classes/AndroidRuntime/simple_components_build_info.json
[javac] Note: Wrote file file:/D:/AI2%20PROYECTOS/CrearExtensiones/appinventor-sources/appinventor/components/build/classes/AndroidRuntime/AutogeneratedOdeMessages.java
[javac] Note: Wrote file file:/D:/AI2%20PROYECTOS/CrearExtensiones/appinventor-sources/appinventor/components/build/classes/AndroidRuntime/ComponentsTranslation.java
[javac] D:\AI2 PROYECTOS\CrearExtensiones\appinventor-sources\appinventor\components\src\com\geomatica\converCor\ConverCor.java:141: error: cannot find symbol
[javac] CRSFactory factory = new CRSFactory();
[javac] ^
[javac] symbol: class CRSFactory
[javac] location: class ConverCor
[javac] D:\AI2 PROYECTOS\CrearExtensiones\appinventor-sources\appinventor\components\src\com\geomatica\converCor\ConverCor.java:141: error: cannot find symbol
[javac] CRSFactory factory = new CRSFactory();
[javac] ^
[javac] symbol: class CRSFactory
[javac] location: class ConverCor
[javac] D:\AI2 PROYECTOS\CrearExtensiones\appinventor-sources\appinventor\components\src\com\geomatica\converCor\ConverCor.java:143: error: cannot find symbol
[javac] CoordinateReferenceSystem srcCrs = factory.createFromName("Wgs84");
[javac] ^
[javac] symbol: class CoordinateReferenceSystem
[javac] location: class ConverCor
[javac] D:\AI2 PROYECTOS\CrearExtensiones\appinventor-sources\appinventor\components\src\com\geomatica\converCor\ConverCor.java:144: error: cannot find symbol
[javac] CoordinateReferenceSystem dstCrs = factory.createFromName("CrsDestino", WktCrsB);
[javac] ^
[javac] symbol: class CoordinateReferenceSystem
[javac] location: class ConverCor
[javac] D:\AI2 PROYECTOS\CrearExtensiones\appinventor-sources\appinventor\components\src\com\geomatica\converCor\ConverCor.java:146: error: cannot find symbol
[javac] BasicCoordinateTransform transform = new BasicCoordinateTransform(srcCrs,dstCrs);
[javac] ^
[javac] symbol: class BasicCoordinateTransform
[javac] location: class ConverCor
[javac] D:\AI2 PROYECTOS\CrearExtensiones\appinventor-sources\appinventor\components\src\com\geomatica\converCor\ConverCor.java:146: error: cannot find symbol
[javac] BasicCoordinateTransform transform = new BasicCoordinateTransform(srcCrs,dstCrs);
[javac] ^
[javac] symbol: class BasicCoordinateTransform
[javac] location: class ConverCor
[javac] D:\AI2 PROYECTOS\CrearExtensiones\appinventor-sources\appinventor\components\src\com\geomatica\converCor\ConverCor.java:154: error: cannot find symbol
[javac] ProjCoordinate srcCoord = new ProjCoordinate(loIdeg,laIdeg);
[javac] ^
[javac] symbol: class ProjCoordinate
[javac] location: class ConverCor
[javac] D:\AI2 PROYECTOS\CrearExtensiones\appinventor-sources\appinventor\components\src\com\geomatica\converCor\ConverCor.java:154: error: cannot find symbol
[javac] ProjCoordinate srcCoord = new ProjCoordinate(loIdeg,laIdeg);
[javac] ^
[javac] symbol: class ProjCoordinate
[javac] location: class ConverCor
[javac] D:\AI2 PROYECTOS\CrearExtensiones\appinventor-sources\appinventor\components\src\com\geomatica\converCor\ConverCor.java:155: error: cannot find symbol
[javac] ProjCoordinate dstCoord = new ProjCoordinate();
[javac] ^
[javac] symbol: class ProjCoordinate
[javac] location: class ConverCor
[javac] D:\AI2 PROYECTOS\CrearExtensiones\appinventor-sources\appinventor\components\src\com\geomatica\converCor\ConverCor.java:155: error: cannot find symbol
[javac] ProjCoordinate dstCoord = new ProjCoordinate();
[javac] ^
[javac] symbol: class ProjCoordinate
[javac] location: class ConverCor
[javac] D:\AI2 PROYECTOS\CrearExtensiones\appinventor-sources\appinventor\components\src\com\geomatica\converCor\ConverCor.java:165: error: cannot find symbol
[javac] coorXY.add(X);
[javac] ^
[javac] symbol: variable X
[javac] location: class ConverCor
[javac] Note: Some input files use or override a deprecated API.
[javac] Note: Recompile with -Xlint:deprecation for details.
[javac] Note: Some input files use unchecked or unsafe operations.
[javac] Note: Recompile with -Xlint:unchecked for details.
[javac] 11 errors
BUILD FAILED
D:\AI2 PROYECTOS\CrearExtensiones\appinventor-sources\appinventor\build.xml:46: The following error occurred while executing this line:
D:\AI2 PROYECTOS\CrearExtensiones\appinventor-sources\appinventor\components\build.xml:217: The following error occurred while executing this line:
D:\AI2 PROYECTOS\CrearExtensiones\appinventor-sources\appinventor\build-common.xml:125: Compile failed; see the compiler error output for details.
Total time: 27 seconds
Picked up _JAVA_OPTIONS: -Xmx1024M
..I appreciate any help you can give me