Extension Building Too Many Classes

Heres the log:

C:\Users\natha\Desktop\appinventor-sources\appinventor>ant extensions
Buildfile: C:\Users\natha\Desktop\appinventor-sources\appinventor\build.xml

extensions:

clean:
   [delete] Deleting directory C:\Users\natha\Desktop\appinventor-sources\appinventor\build\components
   [delete] Deleting directory C:\Users\natha\Desktop\appinventor-sources\appinventor\components\build
   [delete] Deleting directory C:\Users\natha\Desktop\appinventor-sources\appinventor\components\reports

init:

common_CommonUtils:

init:

CommonUtils:

common_CommonVersion:

init:

CommonVersion:

CopyToRunLibDir:

components_AndroidRuntime:

init:
    [mkdir] Created dir: C:\Users\natha\Desktop\appinventor-sources\appinventor\build\components
    [mkdir] Created dir: C:\Users\natha\Desktop\appinventor-sources\appinventor\components\build
    [mkdir] Created dir: C:\Users\natha\Desktop\appinventor-sources\appinventor\components\build\classes
    [mkdir] Created dir: C:\Users\natha\Desktop\appinventor-sources\appinventor\components\reports
    [mkdir] Created dir: C:\Users\natha\Desktop\appinventor-sources\appinventor\components\reports\raw
    [mkdir] Created dir: C:\Users\natha\Desktop\appinventor-sources\appinventor\components\reports\html

CommonConstants:
    [mkdir] Created dir: C:\Users\natha\Desktop\appinventor-sources\appinventor\components\build\classes\CommonConstants
    [javac] Compiling 6 source files to C:\Users\natha\Desktop\appinventor-sources\appinventor\components\build\classes\CommonConstants
    [javac] warning: [options] bootstrap class path not set in conjunction with -source 7
    [javac] 1 warning
    [javac] Creating empty C:\Users\natha\Desktop\appinventor-sources\appinventor\components\build\classes\CommonConstants\com\google\appinventor\components\common\package-info.class
      [jar] Building jar: C:\Users\natha\Desktop\appinventor-sources\appinventor\build\components\CommonConstants.jar
      [jar] Building jar: C:\Users\natha\Desktop\appinventor-sources\appinventor\build\components\CommonConstants-gwt.jar

HtmlEntities:
    [mkdir] Created dir: C:\Users\natha\Desktop\appinventor-sources\appinventor\components\build\classes\HtmlEntities
    [javac] Compiling 1 source file to C:\Users\natha\Desktop\appinventor-sources\appinventor\components\build\classes\HtmlEntities
    [javac] warning: [options] bootstrap class path not set in conjunction with -source 7
    [javac] 1 warning
      [jar] Building jar: C:\Users\natha\Desktop\appinventor-sources\appinventor\components\build\HtmlEntities.jar

common_CommonVersion:

init:

CommonVersion:

AndroidRuntime:
    [mkdir] Created dir: C:\Users\natha\Desktop\appinventor-sources\appinventor\components\build\classes\AndroidRuntime
    [javac] Compiling 259 source files to C:\Users\natha\Desktop\appinventor-sources\appinventor\components\build\classes\AndroidRuntime
    [javac] warning: [options] bootstrap class path not set in conjunction with -source 7
    [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] 1 warning
    [javac] Creating empty C:\Users\natha\Desktop\appinventor-sources\appinventor\components\build\classes\AndroidRuntime\com\google\appinventor\components\runtime\util\package-info.class
    [javac] Creating empty C:\Users\natha\Desktop\appinventor-sources\appinventor\components\build\classes\AndroidRuntime\com\google\appinventor\components\annotations\androidmanifest\package-info.class
    [javac] Creating empty C:\Users\natha\Desktop\appinventor-sources\appinventor\components\build\classes\AndroidRuntime\com\google\appinventor\components\runtime\collect\package-info.class
    [javac] Creating empty C:\Users\natha\Desktop\appinventor-sources\appinventor\components\build\classes\AndroidRuntime\com\google\appinventor\components\annotations\package-info.class
    [javac] Creating empty C:\Users\natha\Desktop\appinventor-sources\appinventor\components\build\classes\AndroidRuntime\com\google\appinventor\components\runtime\package-info.class
    [javac] Creating empty C:\Users\natha\Desktop\appinventor-sources\appinventor\components\build\classes\AndroidRuntime\com\google\appinventor\components\runtime\errors\package-info.class
      [jar] Building jar: C:\Users\natha\Desktop\appinventor-sources\appinventor\build\components\AndroidRuntime.jar

components_Barcode:

Barcode:
    [mkdir] Created dir: C:\Users\natha\Desktop\appinventor-sources\appinventor\components\build\classes\Barcode
    [javac] Compiling 40 source files to C:\Users\natha\Desktop\appinventor-sources\appinventor\components\build\classes\Barcode
    [javac] warning: [options] bootstrap class path not set in conjunction with -source 7
    [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] 1 warning
      [jar] Building jar: C:\Users\natha\Desktop\appinventor-sources\appinventor\build\components\Barcode.jar

components_ComponentList:

init:

CommonConstants:

ComponentProcessingLib:
    [mkdir] Created dir: C:\Users\natha\Desktop\appinventor-sources\appinventor\components\build\classes\ComponentProcessingLib
    [javac] Compiling 25 source files to C:\Users\natha\Desktop\appinventor-sources\appinventor\components\build\classes\ComponentProcessingLib
    [javac] warning: [options] bootstrap class path not set in conjunction with -source 7
    [javac] Note: C:\Users\natha\Desktop\appinventor-sources\appinventor\components\src\com\google\appinventor\components\scripts\ComponentProcessor.java uses or overrides a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] Note: C:\Users\natha\Desktop\appinventor-sources\appinventor\components\src\com\google\appinventor\components\scripts\ComponentProcessor.java uses unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [javac] 1 warning
    [javac] Creating empty C:\Users\natha\Desktop\appinventor-sources\appinventor\components\build\classes\ComponentProcessingLib\com\google\appinventor\components\annotations\androidmanifest\package-info.class
    [javac] Creating empty C:\Users\natha\Desktop\appinventor-sources\appinventor\components\build\classes\ComponentProcessingLib\com\google\appinventor\components\annotations\package-info.class
      [jar] Building jar: C:\Users\natha\Desktop\appinventor-sources\appinventor\components\build\ComponentProcessingLib.jar

HtmlEntities:

common_CommonUtils:

init:

CommonUtils:

AnnotationProcessors:
    [mkdir] Created dir: C:\Users\natha\Desktop\appinventor-sources\appinventor\components\build\classes\AnnotationProcessors
    [javac] Compiling 7 source files to C:\Users\natha\Desktop\appinventor-sources\appinventor\components\build\classes\AnnotationProcessors
    [javac] warning: [options] bootstrap class path not set in conjunction with -source 7
    [javac] Note: C:\Users\natha\Desktop\appinventor-sources\appinventor\components\src\com\google\appinventor\components\scripts\ComponentProcessor.java uses or overrides a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] Note: C:\Users\natha\Desktop\appinventor-sources\appinventor\components\src\com\google\appinventor\components\scripts\ComponentProcessor.java uses unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [javac] 1 warning
    [javac] Creating empty C:\Users\natha\Desktop\appinventor-sources\appinventor\components\build\classes\AnnotationProcessors\com\google\appinventor\components\scripts\package-info.class
     [copy] Copying 22 files to C:\Users\natha\Desktop\appinventor-sources\appinventor\components\build\classes\AnnotationProcessors
      [jar] Building jar: C:\Users\natha\Desktop\appinventor-sources\appinventor\components\build\AnnotationProcessors.jar

common_CommonVersion:

init:

CommonVersion:

AndroidRuntime:
    [javac] Compiling 1 source file to C:\Users\natha\Desktop\appinventor-sources\appinventor\components\build\classes\AndroidRuntime
    [javac] warning: [options] bootstrap class path not set in conjunction with -source 7
    [javac] 1 warning
      [jar] Building jar: C:\Users\natha\Desktop\appinventor-sources\appinventor\build\components\AndroidRuntime.jar

Barcode:

ComponentList:
    [mkdir] Created dir: C:\Users\natha\Desktop\appinventor-sources\appinventor\components\build\classes\ComponentList
    [javac] Compiling 235 source files to C:\Users\natha\Desktop\appinventor-sources\appinventor\components\build\classes\ComponentList
    [javac] warning: [options] bootstrap class path not set in conjunction with -source 7
    [javac] warning: No SupportedSourceVersion annotation found on com.google.appinventor.components.scripts.ComponentListGenerator, returning RELEASE_6.
    [javac] warning: Supported source version 'RELEASE_6' from annotation processor 'com.google.appinventor.components.scripts.ComponentListGenerator' less than -source '7'
    [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] warning: In component Hosts, event PermissionDenied is missing a description.
    [javac] warning: In component Hosts, event PermissionGranted is missing a description.
    [javac] Note: Wrote file file:///C:/Users/natha/Desktop/appinventor-sources/appinventor/components/build/classes/ComponentList/simple_components.txt
    [javac] Note: Wrote file file:///C:/Users/natha/Desktop/appinventor-sources/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] 11 warnings
    [javac] Creating empty C:\Users\natha\Desktop\appinventor-sources\appinventor\components\build\classes\ComponentList\com\google\appinventor\components\runtime\util\package-info.class
    [javac] Creating empty C:\Users\natha\Desktop\appinventor-sources\appinventor\components\build\classes\ComponentList\com\google\appinventor\components\runtime\collect\package-info.class
    [javac] Creating empty C:\Users\natha\Desktop\appinventor-sources\appinventor\components\build\classes\ComponentList\com\google\appinventor\components\runtime\package-info.class
    [javac] Creating empty C:\Users\natha\Desktop\appinventor-sources\appinventor\components\build\classes\ComponentList\com\google\appinventor\components\runtime\errors\package-info.class
     [copy] Copying 1 file to C:\Users\natha\Desktop\appinventor-sources\appinventor\build\components
     [copy] Copying 1 file to C:\Users\natha\Desktop\appinventor-sources\appinventor\build\components

BuildServer:
     [copy] Copying 4 files to C:\Users\natha\Desktop\appinventor-sources\appinventor\buildserver\build\classes\BuildServer\files
      [jar] Building jar: C:\Users\natha\Desktop\appinventor-sources\appinventor\buildserver\build\run\lib\BuildServer.jar

init:

CommonConstants:

HtmlEntities:

common_CommonVersion:

init:

CommonVersion:

AndroidRuntime:
    [javac] Compiling 1 source file to C:\Users\natha\Desktop\appinventor-sources\appinventor\components\build\classes\AndroidRuntime
    [javac] warning: [options] bootstrap class path not set in conjunction with -source 7
    [javac] 1 warning
      [jar] Building jar: C:\Users\natha\Desktop\appinventor-sources\appinventor\build\components\AndroidRuntime.jar

ComponentProcessingLib:

common_CommonUtils:

init:

CommonUtils:

AnnotationProcessors:
      [jar] Building jar: C:\Users\natha\Desktop\appinventor-sources\appinventor\components\build\AnnotationProcessors.jar

JsonComponentDescription:
    [mkdir] Created dir: C:\Users\natha\Desktop\appinventor-sources\appinventor\components\build\classes\JsonComponentDescription
    [javac] Compiling 235 source files to C:\Users\natha\Desktop\appinventor-sources\appinventor\components\build\classes\JsonComponentDescription
    [javac] warning: [options] bootstrap class path not set in conjunction with -source 7
    [javac] warning: No SupportedSourceVersion annotation found on com.google.appinventor.components.scripts.ComponentDescriptorGenerator, returning RELEASE_6.
    [javac] warning: Supported source version 'RELEASE_6' from annotation processor 'com.google.appinventor.components.scripts.ComponentDescriptorGenerator' less than -source '7'
    [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] warning: In component Hosts, event PermissionDenied is missing a description.
    [javac] warning: In component Hosts, event PermissionGranted is missing a description.
    [javac] Note: Wrote file file:///C:/Users/natha/Desktop/appinventor-sources/appinventor/components/build/classes/JsonComponentDescription/simple_components.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] 11 warnings
    [javac] Creating empty C:\Users\natha\Desktop\appinventor-sources\appinventor\components\build\classes\JsonComponentDescription\com\google\appinventor\components\runtime\util\package-info.class
    [javac] Creating empty C:\Users\natha\Desktop\appinventor-sources\appinventor\components\build\classes\JsonComponentDescription\com\google\appinventor\components\runtime\collect\package-info.class
    [javac] Creating empty C:\Users\natha\Desktop\appinventor-sources\appinventor\components\build\classes\JsonComponentDescription\com\google\appinventor\components\runtime\package-info.class
    [javac] Creating empty C:\Users\natha\Desktop\appinventor-sources\appinventor\components\build\classes\JsonComponentDescription\com\google\appinventor\components\runtime\errors\package-info.class
     [copy] Copying 1 file to C:\Users\natha\Desktop\appinventor-sources\appinventor\build\components

Barcode:

ComponentList:
    [javac] Compiling 1 source file to C:\Users\natha\Desktop\appinventor-sources\appinventor\components\build\classes\ComponentList
    [javac] warning: [options] bootstrap class path not set in conjunction with -source 7
    [javac] warning: No SupportedSourceVersion annotation found on com.google.appinventor.components.scripts.ComponentListGenerator, returning RELEASE_6.
    [javac] warning: Supported source version 'RELEASE_6' from annotation processor 'com.google.appinventor.components.scripts.ComponentListGenerator' less than -source '7'
    [javac] warning: In component Hosts, event PermissionDenied is missing a description.
    [javac] warning: In component Hosts, event PermissionGranted is missing a description.
    [javac] Note: Wrote file file:///C:/Users/natha/Desktop/appinventor-sources/appinventor/components/build/classes/ComponentList/simple_components.txt
    [javac] Note: Wrote file file:///C:/Users/natha/Desktop/appinventor-sources/appinventor/components/build/classes/ComponentList/simple_components_build_info.json
    [javac] 5 warnings
     [copy] Copying 1 file to C:\Users\natha\Desktop\appinventor-sources\appinventor\build\components
     [copy] Copying 1 file to C:\Users\natha\Desktop\appinventor-sources\appinventor\build\components

ExternalComponentGenerator:
    [mkdir] Created dir: C:\Users\natha\Desktop\appinventor-sources\appinventor\components\build\classes\ExternalComponentGenerator
    [mkdir] Created dir: C:\Users\natha\Desktop\appinventor-sources\appinventor\components\build\externalComponents
    [mkdir] Created dir: C:\Users\natha\Desktop\appinventor-sources\appinventor\components\build\externalComponents-class
    [javac] Compiling 1 source file to C:\Users\natha\Desktop\appinventor-sources\appinventor\components\build\classes\ExternalComponentGenerator
    [javac] warning: [options] bootstrap class path not set in conjunction with -source 7
    [javac] 1 warning
     [java]
     [java] Extensions : Generating extensions
     [java]
     [java] Extensions : Generating files [ml.meteorkoder.hosts]
     [java] Extensions : Copying file ml\meteorkoder\hosts\Hosts$1.class
     [java] Extensions : Copying file ml\meteorkoder\hosts\Hosts$10.class
     [java] Extensions : Copying file ml\meteorkoder\hosts\Hosts$11.class
     [java] Extensions : Copying file ml\meteorkoder\hosts\Hosts$12.class
     [java] Extensions : Copying file ml\meteorkoder\hosts\Hosts$13.class
     [java] Extensions : Copying file ml\meteorkoder\hosts\Hosts$14.class
     [java] Extensions : Copying file ml\meteorkoder\hosts\Hosts$15.class
     [java] Extensions : Copying file ml\meteorkoder\hosts\Hosts$16.class
     [java] Extensions : Copying file ml\meteorkoder\hosts\Hosts$17.class
     [java] Extensions : Copying file ml\meteorkoder\hosts\Hosts$18.class
     [java] Extensions : Copying file ml\meteorkoder\hosts\Hosts$19.class
     [java] Extensions : Copying file ml\meteorkoder\hosts\Hosts$2.class
     [java] Extensions : Copying file ml\meteorkoder\hosts\Hosts$20.class
     [java] Extensions : Copying file ml\meteorkoder\hosts\Hosts$21.class
     [java] Extensions : Copying file ml\meteorkoder\hosts\Hosts$22.class
     [java] Extensions : Copying file ml\meteorkoder\hosts\Hosts$23.class
     [java] Extensions : Copying file ml\meteorkoder\hosts\Hosts$24.class
     [java] Extensions : Copying file ml\meteorkoder\hosts\Hosts$25.class
     [java] Extensions : Copying file ml\meteorkoder\hosts\Hosts$26.class
     [java] Extensions : Copying file ml\meteorkoder\hosts\Hosts$27.class
     [java] Extensions : Copying file ml\meteorkoder\hosts\Hosts$28.class
     [java] Extensions : Copying file ml\meteorkoder\hosts\Hosts$29.class
     [java] Extensions : Copying file ml\meteorkoder\hosts\Hosts$3.class
     [java] Extensions : Copying file ml\meteorkoder\hosts\Hosts$30.class
     [java] Extensions : Copying file ml\meteorkoder\hosts\Hosts$31.class
     [java] Extensions : Copying file ml\meteorkoder\hosts\Hosts$32.class
     [java] Extensions : Copying file ml\meteorkoder\hosts\Hosts$33.class
     [java] Extensions : Copying file ml\meteorkoder\hosts\Hosts$34.class
     [java] Extensions : Copying file ml\meteorkoder\hosts\Hosts$35.class
     [java] Extensions : Copying file ml\meteorkoder\hosts\Hosts$36.class
     [java] Extensions : Copying file ml\meteorkoder\hosts\Hosts$37.class
     [java] Extensions : Copying file ml\meteorkoder\hosts\Hosts$38.class
     [java] Extensions : Copying file ml\meteorkoder\hosts\Hosts$39.class
     [java] Extensions : Copying file ml\meteorkoder\hosts\Hosts$4.class
     [java] Extensions : Copying file ml\meteorkoder\hosts\Hosts$40.class
     [java] Extensions : Copying file ml\meteorkoder\hosts\Hosts$41.class
     [java] Extensions : Copying file ml\meteorkoder\hosts\Hosts$42.class
     [java] Extensions : Copying file ml\meteorkoder\hosts\Hosts$43.class
     [java] Extensions : Copying file ml\meteorkoder\hosts\Hosts$44.class
     [java] Extensions : Copying file ml\meteorkoder\hosts\Hosts$45.class
     [java] Extensions : Copying file ml\meteorkoder\hosts\Hosts$46.class
     [java] Extensions : Copying file ml\meteorkoder\hosts\Hosts$47.class
     [java] Extensions : Copying file ml\meteorkoder\hosts\Hosts$48.class
     [java] Extensions : Copying file ml\meteorkoder\hosts\Hosts$49.class
     [java] Extensions : Copying file ml\meteorkoder\hosts\Hosts$5.class
     [java] Extensions : Copying file ml\meteorkoder\hosts\Hosts$50.class
     [java] Extensions : Copying file ml\meteorkoder\hosts\Hosts$51.class
     [java] Extensions : Copying file ml\meteorkoder\hosts\Hosts$52.class
     [java] Extensions : Copying file ml\meteorkoder\hosts\Hosts$53.class
     [java] Extensions : Copying file ml\meteorkoder\hosts\Hosts$54.class
     [java] Extensions : Copying file ml\meteorkoder\hosts\Hosts$55.class
     [java] Extensions : Copying file ml\meteorkoder\hosts\Hosts$56.class
     [java] Extensions : Copying file ml\meteorkoder\hosts\Hosts$57.class
     [java] Extensions : Copying file ml\meteorkoder\hosts\Hosts$58.class
     [java] Extensions : Copying file ml\meteorkoder\hosts\Hosts$59.class
     [java] Extensions : Copying file ml\meteorkoder\hosts\Hosts$6.class
     [java] Extensions : Copying file ml\meteorkoder\hosts\Hosts$60.class
     [java] Extensions : Copying file ml\meteorkoder\hosts\Hosts$61.class
     [java] Extensions : Copying file ml\meteorkoder\hosts\Hosts$62.class
     [java] Extensions : Copying file ml\meteorkoder\hosts\Hosts$63.class
     [java] Extensions : Copying file ml\meteorkoder\hosts\Hosts$64.class
     [java] Extensions : Copying file ml\meteorkoder\hosts\Hosts$65.class
     [java] Extensions : Copying file ml\meteorkoder\hosts\Hosts$66.class
     [java] Extensions : Copying file ml\meteorkoder\hosts\Hosts$67.class
     [java] Extensions : Copying file ml\meteorkoder\hosts\Hosts$68.class
     [java] Extensions : Copying file ml\meteorkoder\hosts\Hosts$69.class
     [java] Extensions : Copying file ml\meteorkoder\hosts\Hosts$7.class
     [java] Extensions : Copying file ml\meteorkoder\hosts\Hosts$70.class
     [java] Extensions : Copying file ml\meteorkoder\hosts\Hosts$71.class
     [java] Extensions : Copying file ml\meteorkoder\hosts\Hosts$72.class
     [java] Extensions : Copying file ml\meteorkoder\hosts\Hosts$8.class
     [java] Extensions : Copying file ml\meteorkoder\hosts\Hosts$9.class
     [java] Extensions : Copying file ml\meteorkoder\hosts\Hosts.class
     [java] Extensions : Successfully created ml.meteorkoder.hosts build info file
     [java] Extensions : Successfully created ml.meteorkoder.hosts extension properties file

unjarAllExtensionLibraries:

unjarExtensionLibraries:

jarAllExtensions:

jarExtension:
      [jar] Building jar: C:\Users\natha\Desktop\appinventor-sources\appinventor\components\build\externalComponents-class\ml.meteorkoder.hosts.jar
     [copy] Copying 1 file to C:\Users\natha\Desktop\appinventor-sources\appinventor\components\build\externalComponents\ml.meteorkoder.hosts\files
     [echo] Generated build file AndroidRuntime.jar [ml.meteorkoder.hosts]

dexAllExtensions:

dexExtension:
     [echo] Dexing extension: ml.meteorkoder.hosts

extensions:
    [mkdir] Created dir: C:\Users\natha\Desktop\appinventor-sources\appinventor\components\build\extensions

packExtension:
      [zip] Building zip: C:\Users\natha\Desktop\appinventor-sources\appinventor\components\build\extensions\ml.meteorkoder.hosts.aix

BUILD SUCCESSFUL
Total time: 9 minutes 10 seconds

Help me :joy: I think this is what’s causing StackOverflows in my application now and Kodular.

https://groups.google.com/forum/#!topic/app-inventor-open-source-dev/zUHpG6XfIIY

I don’t think many people here will be able to help
You should try asking in the app inventor developement group
https://groups.google.com/forum/#!forum/app-inventor-open-source-dev

2 Likes

This was solved.

1 Like

what about providing the solution to your issue then?
This might help others with the same issue in future…
Taifun

3 Likes

Why do you need 72 classes?
That does not make sense

2 Likes

For some reason it built 72 classes, however it has been fixed as I kept applying to check for permission every block.

I removed this from every block:

if (!havePermission) {
      final Hosts me = this;
      form.runOnUiThread(new Runnable() {
          @Override
          public void run() {
            form.askPermission(Manifest.permission.READ_PHONE_NUMBERS,
             new PermissionResultHandler() {
               @Override
               public void HandlePermissionResponse(String permission, boolean granted) {
                 if (granted) {
                   form.runOnUiThread(new Runnable() {
                       @Override
                       public void run() {
                         form.askPermission(Manifest.permission.READ_PHONE_STATE,
                          new PermissionResultHandler() {
                            @Override
                            public void HandlePermissionResponse(String permission, boolean granted) {
                              if (granted) {
                                form.runOnUiThread(new Runnable() {
                                    @Override
                                    public void run() {
                                      form.askPermission(Manifest.permission.ACCESS_WIFI_STATE,
                                       new PermissionResultHandler() {
                                         @Override
                                         public void HandlePermissionResponse(String permission, boolean granted) {
                                           if (granted) {
                                             form.runOnUiThread(new Runnable() {
                                                 @Override
                                                 public void run() {
                                                   form.askPermission(Manifest.permission.ACCESS_NETWORK_STATE,
                                                    new PermissionResultHandler() {
                                                      @Override
                                                      public void HandlePermissionResponse(String permission, boolean granted) {
                                                        if (granted) {
                                                          me.havePermission = true;
                                                          PermissionGranted("Hosts", "ml.meteorkoder.hosts", "android.permission.ACCESS_NETWORK_STATE", "Permission allowed by user.");
                                                        } else {
                                                          form.dispatchPermissionDeniedEvent(me, "AskAllPermissions",
                                                              Manifest.permission.ACCESS_NETWORK_STATE);
                                                              PermissionDenied("Hosts", "ml.meteorkoder.hosts", "android.permission.ACCESS_NETWORK_STATE", "Permission denied by user.");
                                                        }
                                                      }
                                                    });
                                                 }
                                               });
                                           } else {
                                             form.dispatchPermissionDeniedEvent(me, "AskAllPermissions",
                                                 Manifest.permission.ACCESS_WIFI_STATE);
                                                 PermissionDenied("Hosts", "ml.meteorkoder.hosts", "android.permission.ACCESS_WIFI_STATE", "Permission denied by user.");
                                           }
                                         }
                                       });
                                    }
                                  });
                              } else {
                                form.dispatchPermissionDeniedEvent(me, "AskAllPermissions",
                                    Manifest.permission.READ_PHONE_STATE);
                                    PermissionDenied("Hosts", "ml.meteorkoder.hosts", "android.permission.READ_PHONE_STATE", "Permission denied by user.");
                              }
                            }
                          });
                       }
                     });
                 } else {
                   form.dispatchPermissionDeniedEvent(me, "AskAllPermissions",
                       Manifest.permission.READ_PHONE_NUMBERS);
                       PermissionDenied("Hosts", "ml.meteorkoder.hosts", "android.permission.READ_PHONE_NUMBERS", "Permission denied by user.");
                 }
               }
             });
          }
        });
      return;
      }

that was a good decision…
you know that you have to ask for permission only, if it is a dangerous permission?
see also

Taifun

1 Like

Hi @Taifun,

Thanks for letting me know, I wasn’t aware, maybe that’s why it’s not working right, as they can’t accept the last two permissions, if this works, thank you very much :joy: I’ve been stressed out for the past IDK how many hours.

Before you replied, I was just about to give up, sadly. I tried way to many times to have a solution but, this may work :thinking:

So @Taifun, my issue is that when I put one of these blocks under a Timer or Screen Initialized, it doesn’t work. But when I setup a button, when it’s clicked then it works. By one of these blocks, I mean every block that’s in this extension that are voids. Are you able to help me?

for questions about working with the App Inventor sources, please ask in the Open Source Group
https://groups.google.com/forum/#!forum/app-inventor-open-source-dev
Taifn

It’s not App Inventor Sources, it’s an issue with the way Permissions are clearly being setup.

Perhaps you need a longer delay before trying to execute your code.

I usually do this by setting the timer interval to something like 500ms-1000ms for things that need more time or are CPU/GPU Intensive at Screen.Initialize.

Here’s the thing, I’ve managed to fix it for Timer, so it works on Timer, I’m just trying to think what’s wrong for it not working on Screen Initialized. I’m working on a fix for it right now.

Everything is all happening at once during Screen.Initialize.
Maybe a longer delay will resolve your issue?

Here’s another thing :joy: I was only checking one permission for each block and it worked fine but, then I had to add the second one as it’s also required, and that’s when it only started working for the Timer.