Results 1 to 2 of 2
  1. #1
    armai is offline Member
    Join Date
    Oct 2016
    Posts
    5
    Rep Power
    0

    Default Cannot generate AppInventor Extension anymore

    Hi friends,

    Im using Apache Ant to create Extension files for the MIT App Inventor 2 (Android App Developping web platform). I'm using the terminal (OS X) for this.

    I succeeded in creating a test .aix file (this is the extension file) according to this tutorial a few days ago:

    App Inventor Extensions

    I could generate the AltCamera.aix extension and the directory "extension" was created, which included that AltCamera.aix file. Just as it should be.

    But as of today, I cannot create any .aix files anymore. I repeated the same procedure, but no extension directory or AltCamera.aix file is coming up. The command @SimpleObject(external = true) is also set in the java file.

    In terminal, I get this output below. According to this, the error seems to happen in lines 36, 343 and 230 of the build.xml file, but when I open this, I can only count about 180 lines. I also dont know whether comments or tags count as lines, so I have no idea which lines are meant. Can anybody help me out?

    I attached the build.xml file (I had to change the file extension to .txt to get the upload allowed).

    Thanks

    ------

    Last login: Sun Oct 2 03:15:28 on ttys000

    kirikiri3s-mbp:~ kirikiri3$ cd Documents/mai/appinventor

    kirikiri3s-mbp:appinventor kirikiri3$ ant extensions

    Buildfile: /Users/kirikiri3/Documents/mai/appinventor/build.xml



    extensions:



    clean:

    [delete] Deleting directory /Users/kirikiri3/Documents/mai/appinventor/build/components

    [delete] Deleting directory /Users/kirikiri3/Documents/mai/appinventor/components/build

    [delete] Deleting directory /Users/kirikiri3/Documents/mai/appinventor/components/reports



    init:



    common_CommonUtils:



    init:



    CommonUtils:



    common_CommonVersion:



    init:



    CommonVersion:

    [exec] Result: 1

    [exec] Result: 1



    CopyToRunLibDir:



    components_AndroidRuntime:



    init:

    [mkdir] Created dir: /Users/kirikiri3/Documents/mai/appinventor/build/components

    [mkdir] Created dir: /Users/kirikiri3/Documents/mai/appinventor/components/build

    [mkdir] Created dir: /Users/kirikiri3/Documents/mai/appinventor/components/build/classes

    [mkdir] Created dir: /Users/kirikiri3/Documents/mai/appinventor/components/reports

    [mkdir] Created dir: /Users/kirikiri3/Documents/mai/appinventor/components/reports/raw

    [mkdir] Created dir: /Users/kirikiri3/Documents/mai/appinventor/components/reports/html



    CommonConstants:

    [mkdir] Created dir: /Users/kirikiri3/Documents/mai/appinventor/components/build/classes/CommonConstants

    [javac] Compiling 6 source files to /Users/kirikiri3/Documents/mai/appinventor/components/build/classes/CommonConstants

    [javac] warning: [options] bootstrap class path not set in conjunction with -source 1.5

    [javac] warning: [options] source value 1.5 is obsolete and will be removed in a future release

    [javac] warning: [options] target value 1.5 is obsolete and will be removed in a future release

    [javac] warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.

    [javac] 4 warnings

    [javac] Creating empty /Users/kirikiri3/Documents/mai/appinventor/components/build/classes/CommonConstants/com/google/appinventor/components/common/package-info.class

    [jar] Building jar: /Users/kirikiri3/Documents/mai/appinventor/build/components/CommonConstants.jar

    [jar] Building jar: /Users/kirikiri3/Documents/mai/appinventor/build/components/CommonConstants-gwt.jar



    HtmlEntities:

    [mkdir] Created dir: /Users/kirikiri3/Documents/mai/appinventor/components/build/classes/HtmlEntities

    [javac] Compiling 1 source file to /Users/kirikiri3/Documents/mai/appinventor/components/build/classes/HtmlEntities

    [javac] warning: [options] bootstrap class path not set in conjunction with -source 1.5

    [javac] warning: [options] source value 1.5 is obsolete and will be removed in a future release

    [javac] warning: [options] target value 1.5 is obsolete and will be removed in a future release

    [javac] warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.

    [javac] 4 warnings

    [jar] Building jar: /Users/kirikiri3/Documents/mai/appinventor/components/build/HtmlEntities.jar



    common_CommonVersion:



    init:



    CommonVersion:

    [exec] Result: 1

    [exec] Result: 1



    AndroidRuntime:

    [mkdir] Created dir: /Users/kirikiri3/Documents/mai/appinventor/components/build/classes/AndroidRuntime

    [javac] Compiling 210 source files to /Users/kirikiri3/Documents/mai/appinventor/components/build/classes/AndroidRuntime

    [javac] warning: [options] bootstrap class path not set in conjunction with -source 1.5

    [javac] warning: [options] source value 1.5 is obsolete and will be removed in a future release

    [javac] warning: [options] target value 1.5 is obsolete and will be removed in a future release

    [javac] warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.

    [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] 4 warnings

    [javac] Creating empty /Users/kirikiri3/Documents/mai/appinventor/components/build/classes/AndroidRuntime/com/google/appinventor/components/runtime/util/package-info.class

    [javac] Creating empty /Users/kirikiri3/Documents/mai/appinventor/components/build/classes/AndroidRuntime/com/google/appinventor/components/runtime/collect/package-info.class

    [javac] Creating empty /Users/kirikiri3/Documents/mai/appinventor/components/build/classes/AndroidRuntime/com/google/appinventor/components/annotations/package-info.class

    [javac] Creating empty /Users/kirikiri3/Documents/mai/appinventor/components/build/classes/AndroidRuntime/com/google/appinventor/components/runtime/package-info.class

    [javac] Creating empty /Users/kirikiri3/Documents/mai/appinventor/components/build/classes/AndroidRuntime/com/google/appinventor/components/runtime/errors/package-info.class

    [jar] Building jar: /Users/kirikiri3/Documents/mai/appinventor/build/components/AndroidRuntime.jar



    components_Barcode:



    Barcode:

    [mkdir] Created dir: /Users/kirikiri3/Documents/mai/appinventor/components/build/classes/Barcode

    [javac] Compiling 40 source files to /Users/kirikiri3/Documents/mai/appinventor/components/build/classes/Barcode

    [javac] warning: [options] bootstrap class path not set in conjunction with -source 1.5

    [javac] warning: [options] source value 1.5 is obsolete and will be removed in a future release

    [javac] warning: [options] target value 1.5 is obsolete and will be removed in a future release

    [javac] warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.

    [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] 4 warnings

    [jar] Building jar: /Users/kirikiri3/Documents/mai/appinventor/build/components/Barcode.jar



    components_ComponentList:



    init:



    CommonConstants:



    ComponentProcessingLib:

    [mkdir] Created dir: /Users/kirikiri3/Documents/mai/appinventor/components/build/classes/ComponentProcessingLib

    [javac] Compiling 15 source files to /Users/kirikiri3/Documents/mai/appinventor/components/build/classes/ComponentProcessingLib

    [javac] warning: [options] bootstrap class path not set in conjunction with -source 1.5

    [javac] warning: [options] source value 1.5 is obsolete and will be removed in a future release

    [javac] warning: [options] target value 1.5 is obsolete and will be removed in a future release

    [javac] warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.

    [javac] 4 warnings

    [javac] Creating empty /Users/kirikiri3/Documents/mai/appinventor/components/build/classes/ComponentProcessingLib/com/google/appinventor/components/annotations/package-info.class

    [jar] Building jar: /Users/kirikiri3/Documents/mai/appinventor/components/build/ComponentProcessingLib.jar



    HtmlEntities:



    common_CommonUtils:



    init:



    CommonUtils:



    AnnotationProcessors:

    [mkdir] Created dir: /Users/kirikiri3/Documents/mai/appinventor/components/build/classes/AnnotationProcessors

    [javac] Compiling 7 source files to /Users/kirikiri3/Documents/mai/appinventor/components/build/classes/AnnotationProcessors

    [javac] warning: [options] bootstrap class path not set in conjunction with -source 1.5

    [javac] warning: [options] source value 1.5 is obsolete and will be removed in a future release

    [javac] warning: [options] target value 1.5 is obsolete and will be removed in a future release

    [javac] warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.

    [javac] 4 warnings

    [javac] Creating empty /Users/kirikiri3/Documents/mai/appinventor/components/build/classes/AnnotationProcessors/com/google/appinventor/components/scripts/package-info.class

    [copy] Copying 22 files to /Users/kirikiri3/Documents/mai/appinventor/components/build/classes/AnnotationProcessors

    [jar] Building jar: /Users/kirikiri3/Documents/mai/appinventor/components/build/AnnotationProcessors.jar



    common_CommonVersion:



    init:



    CommonVersion:

    [exec] Result: 1

    [exec] Result: 1



    AndroidRuntime:

    [javac] Compiling 1 source file to /Users/kirikiri3/Documents/mai/appinventor/components/build/classes/AndroidRuntime

    [javac] warning: [options] bootstrap class path not set in conjunction with -source 1.5

    [javac] warning: [options] source value 1.5 is obsolete and will be removed in a future release

    [javac] warning: [options] target value 1.5 is obsolete and will be removed in a future release

    [javac] warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.

    [javac] 4 warnings

    [jar] Building jar: /Users/kirikiri3/Documents/mai/appinventor/build/components/AndroidRuntime.jar



    Barcode:



    ComponentList:

    [mkdir] Created dir: /Users/kirikiri3/Documents/mai/appinventor/components/build/classes/ComponentList

    [javac] Compiling 196 source files to /Users/kirikiri3/Documents/mai/appinventor/components/build/classes/ComponentList

    [javac] warning: No SupportedSourceVersion annotation found on com.google.appinventor.components.scripts.Componen tListGenerator, returning RELEASE_6.

    [javac] warning: Supported source version 'RELEASE_6' from annotation processor 'com.google.appinventor.components.scripts.Compone ntListGenerator' less than -source '1.8'

    [javac] warning: In component NearField, event TagWritten is missing a description.

    [javac] warning: In component Pedometer, event StartedMoving is missing a description.

    [javac] warning: In component Pedometer, event StoppedMoving is missing a description.

    [javac] warning: In component Pedometer, event CalibrationFailed is missing a description.

    [javac] warning: In component Pedometer, event GPSAvailable is missing a description.

    [javac] warning: In component Pedometer, event GPSLost is missing a description.

    [javac] Note: Wrote file file:/Users/kirikiri3/Documents/mai/appinventor/components/build/classes/ComponentList/simple_components.txt

    [javac] Note: Wrote file file:/Users/kirikiri3/Documents/mai/appinventor/components/build/classes/ComponentList/simple_components_build_info.json

    [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] 8 warnings

    [javac] Creating empty /Users/kirikiri3/Documents/mai/appinventor/components/build/classes/ComponentList/com/google/appinventor/components/runtime/util/package-info.class

    [javac] Creating empty /Users/kirikiri3/Documents/mai/appinventor/components/build/classes/ComponentList/com/google/appinventor/components/runtime/collect/package-info.class

    [javac] Creating empty /Users/kirikiri3/Documents/mai/appinventor/components/build/classes/ComponentList/com/google/appinventor/components/runtime/package-info.class

    [javac] Creating empty /Users/kirikiri3/Documents/mai/appinventor/components/build/classes/ComponentList/com/google/appinventor/components/runtime/errors/package-info.class

    [copy] Copying 1 file to /Users/kirikiri3/Documents/mai/appinventor/build/components

    [copy] Copying 1 file to /Users/kirikiri3/Documents/mai/appinventor/build/components



    BuildServer:

    [copy] Copying 4 files to /Users/kirikiri3/Documents/mai/appinventor/buildserver/build/classes/BuildServer/files

    [jar] Building jar: /Users/kirikiri3/Documents/mai/appinventor/buildserver/build/run/lib/BuildServer.jar



    init:



    CommonConstants:



    HtmlEntities:



    common_CommonVersion:



    init:



    CommonVersion:

    [exec] Result: 1

    [exec] Result: 1



    AndroidRuntime:

    [javac] Compiling 1 source file to /Users/kirikiri3/Documents/mai/appinventor/components/build/classes/AndroidRuntime

    [javac] warning: [options] bootstrap class path not set in conjunction with -source 1.5

    [javac] warning: [options] source value 1.5 is obsolete and will be removed in a future release

    [javac] warning: [options] target value 1.5 is obsolete and will be removed in a future release

    [javac] warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.

    [javac] 4 warnings

    [jar] Building jar: /Users/kirikiri3/Documents/mai/appinventor/build/components/AndroidRuntime.jar



    ComponentProcessingLib:



    common_CommonUtils:



    init:



    CommonUtils:



    AnnotationProcessors:



    JsonComponentDescription:

    [mkdir] Created dir: /Users/kirikiri3/Documents/mai/appinventor/components/build/classes/JsonComponentDescription

    [javac] Compiling 196 source files to /Users/kirikiri3/Documents/mai/appinventor/components/build/classes/JsonComponentDescription

    [javac] warning: No SupportedSourceVersion annotation found on com.google.appinventor.components.scripts.Componen tDescriptorGenerator, returning RELEASE_6.

    [javac] warning: Supported source version 'RELEASE_6' from annotation processor 'com.google.appinventor.components.scripts.Compone ntDescriptorGenerator' less than -source '1.8'

    [javac] warning: In component NearField, event TagWritten is missing a description.

    [javac] warning: In component Pedometer, event StartedMoving is missing a description.

    [javac] warning: In component Pedometer, event StoppedMoving is missing a description.

    [javac] warning: In component Pedometer, event CalibrationFailed is missing a description.

    [javac] warning: In component Pedometer, event GPSAvailable is missing a description.

    [javac] warning: In component Pedometer, event GPSLost is missing a description.

    [javac]

    [javac]

    [javac] An annotation processor threw an uncaught exception.

    [javac] Consult the following stack trace for details.

    [javac] java.lang.RuntimeException: Cannot convert Java type 'java.lang.Void[]' to Yail type

    [javac] at com.google.appinventor.components.scripts.Componen tProcessor.javaTypeToYailType(ComponentProcessor.j ava:1184)

    [javac] at com.google.appinventor.components.scripts.Componen tDescriptorGenerator.outputParameters(ComponentDes criptorGenerator.java:208)

    [javac] at com.google.appinventor.components.scripts.Componen tDescriptorGenerator.outputBlockMethod(ComponentDe scriptorGenerator.java:187)

    [javac] at com.google.appinventor.components.scripts.Componen tDescriptorGenerator.outputComponent(ComponentDesc riptorGenerator.java:125)

    [javac] at com.google.appinventor.components.scripts.Componen tDescriptorGenerator.outputResults(ComponentDescri ptorGenerator.java:226)

    [javac] at com.google.appinventor.components.scripts.Componen tProcessor.process(ComponentProcessor.java:731)

    [javac] at com.sun.tools.javac.processing.JavacProcessingEnvi ronment.callProcessor(JavacProcessingEnvironment.j ava:794)

    [javac] at com.sun.tools.javac.processing.JavacProcessingEnvi ronment.discoverAndRunProcs(JavacProcessingEnviron ment.java:705)

    [javac] at com.sun.tools.javac.processing.JavacProcessingEnvi ronment.access$1800(JavacProcessingEnvironment.jav a:91)

    [javac] at com.sun.tools.javac.processing.JavacProcessingEnvi ronment$Round.run(JavacProcessingEnvironment.java: 1035)

    [javac] at com.sun.tools.javac.processing.JavacProcessingEnvi ronment.doProcessing(JavacProcessingEnvironment.ja va:1176)

    [javac] at com.sun.tools.javac.main.JavaCompiler.processAnnot ations(JavaCompiler.java:1170)

    [javac] at com.sun.tools.javac.main.JavaCompiler.compile(Java Compiler.java:856)

    [javac] at com.sun.tools.javac.main.Main.compile(Main.java:52 3)

    [javac] at com.sun.tools.javac.main.Main.compile(Main.java:38 1)

    [javac] at com.sun.tools.javac.main.Main.compile(Main.java:37 0)

    [javac] at com.sun.tools.javac.main.Main.compile(Main.java:36 1)

    [javac] at com.sun.tools.javac.Main.compile(Main.java:56)

    [javac] at sun.reflect.NativeMethodAccessorImpl.invoke0(Nativ e Method)

    [javac] at sun.reflect.NativeMethodAccessorImpl.invoke(Native MethodAccessorImpl.java:62)

    [javac] at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:43)

    [javac] at java.lang.reflect.Method.invoke(Method.java:498)

    [javac] at org.apache.tools.ant.taskdefs.compilers.Javac13.ex ecute(Javac13.java:57)

    [javac] at org.apache.tools.ant.taskdefs.Javac.compile(Javac. java:1344)

    [javac] at org.apache.tools.ant.taskdefs.Javac.execute(Javac. java:1070)

    [javac] at org.apache.tools.ant.UnknownElement.execute(Unknow nElement.java:293)

    [javac] at sun.reflect.GeneratedMethodAccessor4.invoke(Unknow n Source)

    [javac] at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:43)

    [javac] at java.lang.reflect.Method.invoke(Method.java:498)

    [javac] at org.apache.tools.ant.dispatch.DispatchUtils.execut e(DispatchUtils.java:106)

    [javac] at org.apache.tools.ant.Task.perform(Task.java:348)

    [javac] at org.apache.tools.ant.taskdefs.Sequential.execute(S equential.java:68)

    [javac] at org.apache.tools.ant.UnknownElement.execute(Unknow nElement.java:293)

    [javac] at sun.reflect.GeneratedMethodAccessor4.invoke(Unknow n Source)

    [javac] at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:43)

    [javac] at java.lang.reflect.Method.invoke(Method.java:498)

    [javac] at org.apache.tools.ant.dispatch.DispatchUtils.execut e(DispatchUtils.java:106)

    [javac] at org.apache.tools.ant.Task.perform(Task.java:348)

    [javac] at org.apache.tools.ant.taskdefs.MacroInstance.execut e(MacroInstance.java:396)

    [javac] at org.apache.tools.ant.UnknownElement.execute(Unknow nElement.java:293)

    [javac] at sun.reflect.GeneratedMethodAccessor4.invoke(Unknow n Source)

    [javac] at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:43)

    [javac] at java.lang.reflect.Method.invoke(Method.java:498)

    [javac] at org.apache.tools.ant.dispatch.DispatchUtils.execut e(DispatchUtils.java:106)

    [javac] at org.apache.tools.ant.Task.perform(Task.java:348)

    [javac] at org.apache.tools.ant.Target.execute(Target.java:43 5)

    [javac] at org.apache.tools.ant.Target.performTasks(Target.ja va:456)

    [javac] at org.apache.tools.ant.Project.executeSortedTargets( Project.java:1405)

    [javac] at org.apache.tools.ant.helper.SingleCheckExecutor.ex ecuteTargets(SingleCheckExecutor.java:38)

    [javac] at org.apache.tools.ant.Project.executeTargets(Projec t.java:1260)

    [javac] at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java :441)

    [javac] at org.apache.tools.ant.UnknownElement.execute(Unknow nElement.java:293)

    [javac] at sun.reflect.GeneratedMethodAccessor4.invoke(Unknow n Source)

    [javac] at sun.reflect.DelegatingMethodAccessorImpl.invoke(De legatingMethodAccessorImpl.java:43)

    [javac] at java.lang.reflect.Method.invoke(Method.java:498)

    [javac] at org.apache.tools.ant.dispatch.DispatchUtils.execut e(DispatchUtils.java:106)

    [javac] at org.apache.tools.ant.Task.perform(Task.java:348)

    [javac] at org.apache.tools.ant.Target.execute(Target.java:43 5)

    [javac] at org.apache.tools.ant.Target.performTasks(Target.ja va:456)

    [javac] at org.apache.tools.ant.Project.executeSortedTargets( Project.java:1405)

    [javac] at org.apache.tools.ant.Project.executeTarget(Project .java:1376)

    [javac] at org.apache.tools.ant.helper.DefaultExecutor.execut eTargets(DefaultExecutor.java:41)

    [javac] at org.apache.tools.ant.Project.executeTargets(Projec t.java:1260)

    [javac] at org.apache.tools.ant.Main.runBuild(Main.java:854)

    [javac] at org.apache.tools.ant.Main.startAnt(Main.java:236)

    [javac] at org.apache.tools.ant.launch.Launcher.run(Launcher. java:285)

    [javac] at org.apache.tools.ant.launch.Launcher.main(Launcher .java:112)



    BUILD FAILED

    /Users/kirikiri3/Documents/mai/appinventor/build.xml:36: The following error occurred while executing this line:

    /Users/kirikiri3/Documents/mai/appinventor/components/build.xml:343: The following error occurred while executing this line:

    /Users/kirikiri3/Documents/mai/appinventor/components/build.xml:230: Compile failed; see the compiler error output for details.



    Total time: 16 seconds

    kirikiri3s-mbp:appinventor kirikiri3$
    Attached Files Attached Files

  2. #2
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    13,541
    Rep Power
    26

    Default Re: Cannot generate AppInventor Extension anymore

    What has changed on your system in the past few days?
    Have you installed a new Java version for example?
    Please do not ask for code as refusal often offends.

    ** This space for rent **

Similar Threads

  1. Chrome doesn't support java anymore ?!?
    By Drew345 in forum Java Applets
    Replies: 8
    Last Post: 08-05-2015, 02:47 PM
  2. Why isn't anything coming up anymore?
    By ilovemysillybanana in forum New To Java
    Replies: 7
    Last Post: 04-13-2013, 05:43 AM
  3. Java doesn't want to install anymore
    By Andross in forum Forum Lobby
    Replies: 0
    Last Post: 09-29-2011, 04:50 PM
  4. Cant run my programs anymore
    By Glenn1990 in forum New To Java
    Replies: 2
    Last Post: 02-25-2011, 08:49 PM
  5. repaint class doesnt work anymore... dunno why..
    By Addez in forum New To Java
    Replies: 9
    Last Post: 11-07-2009, 09:10 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •