Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-11821] Android: scons fails

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionInvalid
Resolution Date2013-03-18T15:35:12.000+0000
Affected Version/sRelease 3.1.0
Fix Version/sn/a
ComponentsAndroid
Labelsn/a
ReporterJon Alter
AssigneeIngo Muschenetz
Created2012-11-19T18:36:30.000+0000
Updated2014-06-19T12:44:02.000+0000

Description

Building the android sdk fails on my machine with this error:
build.kroll.rhino.jar:
    [mkdir] Created dir: /Users/jalter/Projects/Titanium/titanium_mobile/dist/android/classes/kroll-rhino
    [mkdir] Created dir: /Users/jalter/Projects/Titanium/titanium_mobile/dist/android/classes/kroll-rhino-gen
    [javac] Compiling 18 source files to /Users/jalter/Projects/Titanium/titanium_mobile/dist/android/classes/kroll-rhino
    [javac] /Users/jalter/Projects/Titanium/titanium_mobile/android/runtime/rhino/src/java/org/appcelerator/kroll/runtime/rhino/KrollWith.java:48: name clash: getDefaultValue(java.lang.Class<?>) in org.appcelerator.kroll.runtime.rhino.KrollWith.WithScope and getDefaultValue(java.lang.Class) in org.mozilla.javascript.ScriptableObject have the same erasure, yet neither overrides the other
    [javac] 	public class WithScope extends ScriptableObject
    [javac] 	       ^
    [javac] /Users/jalter/Projects/Titanium/titanium_mobile/android/runtime/rhino/src/java/org/appcelerator/kroll/runtime/rhino/TypeConverter.java:87: method does not override or implement a method from a supertype
    [javac] 		@Override
    [javac] 		^
    [javac] Note: /Users/jalter/Projects/Titanium/titanium_mobile/android/runtime/rhino/src/java/org/appcelerator/kroll/runtime/rhino/RhinoRuntime.java uses or overrides a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] 2 errors

BUILD FAILED
/Users/jalter/Projects/Titanium/titanium_mobile/android/build/common.xml:669: The following error occurred while executing this line:
/Users/jalter/Projects/Titanium/titanium_mobile/android/build/common.xml:449: Compile failed; see the compiler error output for details.
joshthecoder fixed this error with the code changes that I am submitting.

Comments

  1. Jon Alter 2012-11-19

    PR: https://github.com/appcelerator/titanium_mobile/pull/3438
  2. Shameer Jan 2013-03-18

    problem solved? detail your system specification.
  3. Jon Alter 2013-03-18

    The issue here was with rhino which has been removed TIMOB-12185. So this is no longer an issue.

JSON Source