What is this error from appybuilder

Buildfile: /projects/goldv2/appinventor-sources/appinventor/build.xml

extensions:

clean:

init:

common_CommonUtils:

init:

CommonUtils:

common_CommonVersion:

init:

CommonVersion:
     [exec] Result: 128
     [exec] Result: 128

CopyToRunLibDir:

components_AndroidRuntime:

init:

CommonConstants:
    [javac] Compiling 6 source files to /projects/goldv2/appinventor-sources/appinventor/components/build/classes/CommonConstants
    [javac] warning: [options] bootstrap class path not set in conjunction with -source 1.7
    [javac] 1 warning

HtmlEntities:

common_CommonVersion:

init:

CommonVersion:
     [exec] Result: 128
     [exec] Result: 128

AndroidRuntime:
    [javac] Compiling 332 source files to /projects/goldv2/appinventor-sources/appinventor/components/build/classes/AndroidRuntime
    [javac] warning: [options] bootstrap class path not set in conjunction with -source 1.7
    [javac] /projects/goldv2/appinventor-sources/appinventor/components/src/com/appybuilder/contact2niraj/NumToRoman/NumToRoman.java:43: error: variable n is already defined in method GetValue(int)
    [javac]        int n = number;
    [javac]            ^
    [javac] /projects/goldv2/appinventor-sources/appinventor/components/src/com/appybuilder/contact2niraj/NumToRoman/NumToRoman.java:47: error: bad operand types for binary operator '/'
    [javac]         q = n / d;
    [javac]               ^
    [javac]   first type:  String
    [javac]   second type: int
    [javac] /projects/goldv2/appinventor-sources/appinventor/components/src/com/appybuilder/contact2niraj/NumToRoman/NumToRoman.java:48: error: bad operand types for binary operator '-'
    [javac]         n = n - q * d;
    [javac]               ^
    [javac]   first type:  String
    [javac]   second type: int
    [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] 3 errors
    [javac] 1 warning

BUILD FAILED
/projects/goldv2/appinventor-sources/appinventor/build.xml:35: The following error occurred while executing this line:
/projects/goldv2/appinventor-sources/appinventor/build-common.xml:372: The following error occurred while executing this line:
/projects/goldv2/appinventor-sources/appinventor/components/build.xml:141: The following error occurred while executing this line:
/projects/goldv2/appinventor-sources/appinventor/build-common.xml:118: Compile failed; see the compiler error output for details.

Total time: 7 seconds
 [javac] Compiling 332 source files to /projects/goldv2/appinventor-sources/appinventor/components/build/classes/AndroidRuntime
    [javac] warning: [options] bootstrap class path not set in conjunction with -source 1.7
    [javac] /projects/goldv2/appinventor-sources/appinventor/components/src/com/appybuilder/contact2niraj/NumToRoman/NumToRoman.java:43: error: variable n is already defined in method GetValue(int)
    [javac]        int n = number;
    [javac]            ^
    [javac] /projects/goldv2/appinventor-sources/appinventor/components/src/com/appybuilder/contact2niraj/NumToRoman/NumToRoman.java:47: error: bad operand types for binary operator '/'
    [javac]         q = n / d;
    [javac]               ^
    [javac]   first type:  String
    [javac]   second type: int
    [javac] /projects/goldv2/appinventor-sources/appinventor/components/src/com/appybuilder/contact2niraj/NumToRoman/NumToRoman.java:48: error: bad operand types for binary operator '-'
    [javac]         n = n - q * d;
    [javac]               ^
    [javac]   first type:  String
    [javac]   second type: int
    [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] 3 errors
    [javac] 1 warning

BUILD FAILED
/projects/goldv2/appinventor-sources/appinventor/build.xml:35: The following error occurred while executing this line:
/projects/goldv2/appinventor-sources/appinventor/build-common.xml:372: The following error occurred while executing this line:
/projects/goldv2/appinventor-sources/appinventor/components/build.xml:141: The following error occurred while executing this line:
/projects/goldv2/appinventor-sources/appinventor/build-common.xml:118: Compile failed; see the compiler error output for details.

Total time: 7 seconds

what is this?

1 Like

Both values should be int.

they are int

then what is this? :thinking:

then post your code

see now there are some String but error is different

n is a string so it will set number as String.

1 Like

oof sorry to disturb i did not saw that

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.