Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-9997] Android: Built project cannot open in Eclipse without changes

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionDuplicate
Resolution Date2013-08-06T23:40:29.000+0000
Affected Version/sRelease 2.1.0
Fix Version/sn/a
ComponentsAndroid, Tooling
Labelsandroidbuild, cb-verified, core
ReporterDavide Cassenti
AssigneeChris Barber
Created2012-06-28T05:26:46.000+0000
Updated2017-03-20T22:11:21.000+0000

Description

Problem description

Built project for Android (%project_dir%/build/android) cannot be imported into Eclipse (that has ADT plugin) and compiled without modification.

Steps to reproduce

- compile small Titanium application:
var win = Ti.UI.createWindow({
	navBarHidden: true,
	backgroundColor: '#000'
});
	
win.open();
- inside Eclipse, run the import and select "%project_dir%/build/android"

Expected behavior

Titanium should generate Android project that can be compiled without any modifications. Titanium project compiled for iOS has no problem with importing and compiling with Xcode

Current behavior

Eclipse shows the following error message: "Android requires compiler compliance level 5.0 or 6.0. Found '1.4' instead. Please use Android Tools > Fix Project Properties."

Comments

  1. Ivan Skugor 2012-07-18

    Hello. Could you please not change the reporter from community tickets that are accepted. The problem is that original reporter don't get any notification after reporter is changed to other person. Or at least add original reported to the watch list. (this is not the first time this happened) Thank you.
  2. Neeraj Gupta 2012-07-18

    @Davide - Please do not change the reporter field when you move or update these tickets. Only time when it is permissible is when you are cloning the tickets.
  3. Perminder Singh Bhatia 2012-10-05

    @Ivan - i am a bit curious as to what purpose will it serve importing that project in Eclipse and running from there as it does not contain any source code (.java)
  4. Ivan Skugor 2012-10-05

    Check "android/gen" directory.
  5. Perminder Singh Bhatia 2012-10-08

    Thanks Ivan for pointing but it still does not solves the purpose as my main app source "app.js" is either converted to CharBuffer or used as is. So, what would be the intent of a person importing this project in eclipse as a person working on Titanium won't bother importing such a project. Therefore, this ticket should go with Low priority instead of High.
  6. Chris Barber 2013-08-06

    For possible solution, investigate the ti_eclipsify.py script here: https://github.com/billdawson/tidevtools.
  7. Chris Barber 2013-08-06

    Dupe of TIMOB-11700.
  8. Lee Morris 2017-03-20

    Closing ticket as duplicate.

JSON Source