Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-19408] Android: An android module is created with errors related to annotations in the Java files in the project

GitHub Issuen/a
TypeBug
PriorityHigh
StatusClosed
ResolutionInvalid
Resolution Date2015-09-14T22:27:47.000+0000
Affected Version/sRelease 5.0.0
Fix Version/sn/a
ComponentsAndroid
Labelsqe-5.0.0
ReporterLokesh Choudhary
AssigneeHieu Pham
Created2015-08-25T22:01:39.000+0000
Updated2015-09-14T23:27:58.000+0000

Description

*Note : The errors shown may be shown by studio, if need be please move this ticket to the appropriate project.*

Description:

1. Create a module using studio/appc CLI. 2. Try to package the created module.

Actual Results:

1. The project created has errors. 2. When we try to package the module we get dialog "Do you want to proceed as the project contains error". 2. Refer attached screenshot for reference.

Expected Results:

1. The module should be created without errors.

Attachments

FileDateSize
Screen Shot 2015-08-25 at 2.37.04 PM.png2015-08-25T22:02:01.000+0000205242
Screen Shot 2015-08-25 at 2.57.19 PM.png2015-08-25T22:02:05.000+000069642
Screen Shot 2015-09-14 at 12.27.04 pm.png2015-09-14T04:30:26.000+0000105453

Comments

  1. Chee Kiat Ng 2015-08-26

    [~msamah], can you take a look?
  2. Ashraf Abu 2015-08-26

    [~lchoudhary] What Java version are you using to compile this? I've got a feeling it has something to do with the version you are using as the screenshot shows "only available if source level is 1.5 or greater"
  3. Lokesh Choudhary 2015-09-02

    [~msamah], I am using java 1.8.0_25. Also, I have java JDK 1.7.X & 1.6 installed on my machine
  4. Ashraf Abu 2015-09-14

    I'm unable to get the errors you are facing. [~lchoudhary] My default properties is set to Java SE 7. Could you try setting that as default and see if it works? [^Screen Shot 2015-09-14 at 12.27.04 pm.png] Also, can you try going to the root of the project folder in Terminal then go the the path /android and run the command ant clean and then ant. If you are able to do this, then maybe perhaps it's a Studio issue. Also, I have a .bash_profile that contains:-
       export ANDROID_SDK=~/Library/Android/sdk
       export ANDROID_NDK=~/Library/Android/android-ndk-r10e
       export PATH=$ANDROID_SDK/tools:$PATH
       export PATH=$ANDROID_SDK/platform-tools:$PATH
       
  5. Ingo Muschenetz 2015-09-14

    @Hieu can you work with [~lokeshchdhry] today on this?
  6. Lokesh Choudhary 2015-09-14

    [~msamah], 1. I changed the default java version to Java 7 & java 6 from studio as suggested by you & created new android module -- I still see the issue. 2. Went to project root ,inside /android, ran ant clean, ran ant -- module built successfully. *NOTE - The module can be packaged successfully even though there are these annotations errors when the module is created. Studio just throws a pop up if you want to proceed packaging as there are errors* 3. My bash profile looks good.
  7. Ingo Muschenetz 2015-09-14

    According to [~lokeshchdhry], this was user error. "My studio java complier complience level was at 1.4 setting it to 1.7 fixed the issue."
  8. Lokesh Choudhary 2015-09-14

    Closing this issue.

JSON Source