[TIMOB-19408] Android: An android module is created with errors related to annotations in the Java files in the project
GitHub Issue | n/a |
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2015-09-14T22:27:47.000+0000 |
Affected Version/s | Release 5.0.0 |
Fix Version/s | n/a |
Components | Android |
Labels | qe-5.0.0 |
Reporter | Lokesh Choudhary |
Assignee | Hieu Pham |
Created | 2015-08-25T22:01:39.000+0000 |
Updated | 2015-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
[~msamah], can you take a look?
[~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"
[~msamah], I am using java 1.8.0_25. Also, I have java JDK 1.7.X & 1.6 installed on my machine
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 commandant clean
and thenant
. If you are able to do this, then maybe perhaps it's a Studio issue. Also, I have a.bash_profile
that contains:-@Hieu can you work with [~lokeshchdhry] today on this?
[~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.
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."
Closing this issue.