My favorites | Sign in
Project Home Downloads Wiki Issues Source
READ-ONLY: This project has been archived. For more information see this post.
Search
for
  Advanced search   Search tips   Subscriptions
Issue 112: Error compiling Mixare in Eclipse
4 people starred this issue and may be notified of changes. Back to list
 
Reported by dpmoro...@gmail.com, May 7, 2012
What steps will reproduce the problem?
1.Import Mixare to Eclipse
2.Fix project properties
3.Error appear!

What is the expected output? What do you see instead?
Cannot be solved to a type.

What version of the product are you using? On what operating system?
Eclipse Clasic SDK Version: 3.7.2 Build id: M20120208-0800 and Android SDK R18 / Tested in windows 7 32&64 bits. 

Please provide any additional information below.
"Camera cannot be resolved to a type" and many others(573 exactly) with the same description (cannot be resolved to a type).
Does anyone fix it? help me please...
May 8, 2012
Project Member #1 abdu.e...@gmail.com
Hi, 
What version of mixare did you use? Have you also imported mixarelib.
There has been a new update for mixare since this morning, that auto imports the dependencies. Maybe that could solve your problems.

see the development branch
https://github.com/mixare/mixare/tree/development


Labels: Version-AndroidRelease0.8
May 8, 2012
#2 dpmoro...@gmail.com
Hi, thanks for comment!
Following the Getting Started Guide (https://code.google.com/p/mixare/wiki/GettingStarted) in the step to import a library, the options described in this guide don't appear:

"you have to convert mixarelib into a android library project, you can do that by richtclicking on the mixarelib -> go to properties -> select android -> scroll down -> and then check the "is Libary" checkbox."

I'm using:
Eclise Eclipse Classic 3.7.2 (Indigo)
Android SDK R18
ADT 18
Windows 7 64 bits

Thanks for any help!
May 8, 2012
#3 DevBinn...@gmail.com
Hi ,

check these options:
1-Do you have Android (AND google) API 10 installed?
window -> Android SDK Manager -> API 10.

2- Import MixareLibrary as separate project:
If you have Mixare setup as project. (that's prefect)
right click on "plugins/mixare-lib" -> import -> "Exiting projects into workspeace" -> select root "/path/to/mixare/plugins/mixare-library" -> finish.

Regards,
AB
May 8, 2012
#4 DevBinn...@gmail.com
to follow,

3- on the new project, mixare-library, You should run ant on build.xml.
this will generate jar file.

4- refersh and clean mixare, main project, and you should be able to see:
"you have to convert mixarelib into a android library project, you can do that by richtclicking on the mixarelib -> go to properties -> select android -> scroll down -> and then check the "is Libary" checkbox."

5- refeash and clean mixare again.

6- enjoy.

May 8, 2012
#5 dpmoro...@visionartech.net
Thanks for your help! 
Unfortunately I still have some errors... i don't know what i'm doing wrong.
First, i'm importing "mixare-library" as a project, some errors appear:

Android requires compiler compliance level 5.0 or 6.0. Found '1.7' instead. Please use Android Tools > Fix Project Properties.

Project 'mixarelib' is missing required source folder: 'gen'

If i create the folder "gen" into "mixare-library" folder, the same error is still appear:

Android requires compiler compliance level 5.0 or 6.0. Found '1.7' instead. Please use Android Tools > Fix Project Properties.
I'm followed the instructions and generate the jar file, and converted the "mixare-library" project to as a library in properties, and not work.

Importing the main project mixare (downloaded from https://github.com/mixare/mixare/tree/development a few minutes ago) shows this:

Android requires compiler compliance level 5.0 or 6.0. Found '1.7' instead. Please use Android Tools > Fix Project Properties.

Project 'mixare' is missing required source folder: 'gen'

If i create the folder "gen" into "mixare-library" folder, A LOT of errors appear... sincerely i'm lost...  

Any ideas? thanks for your attention

PD. A screenshot of errors


err1.png
167 KB   View   Download
err2.png
126 KB   View   Download
err3.png
172 KB   View   Download
May 9, 2012
Project Member #6 abdu.e...@gmail.com
Hi I think I found the solution, it has probably to do with a x64 jvm and eclipse on a 32bit android sdk. 

http://stackoverflow.com/questions/7637144/android-requires-compiler-compliance-level-5-0-or-6-0-found-1-7-instead-plea

right-click on your project and select "Properties -> Java Compiler", check "Enable project specific settings" and select 1.5 or 1.6 from "Compiler compliance settings" select box.

Good luck,
May 9, 2012
#8 dpmoro...@gmail.com
Thanks a lot! all errors disappeared!
But i have one error launching the simulator... i don't know what it means... I don't have errors but i can't install the application, in a mobile device i will get the same error?
err4.png
135 KB   View   Download
May 10, 2012
#9 DevBinn...@gmail.com
I would not recommend running the application on simulator, because it requires camera + accelerometer + GPS, which they are hard to get them work on simulator.

On the other hand, I notice that the simulator that you are trying to run the app on is  android 2.2, (which is ok and the app should be compatible to that version), however the main target is API 10 which is android 2.3.

best of luck,
A B
May 11, 2012
#10 dpmoro...@gmail.com
I get another error!
"Android Library projects cannot be launched"

I'm tired!! does anyone can give me a copy of your installation please?
err5.png
121 KB   View   Download
May 11, 2012
Project Member #11 abdu.e...@gmail.com
Hi,
You have made the mixare (core) app, a library project. Please unselect "Is library" in that project. 
Right click on mixare -> go to properties -> select android -> scroll down -> uncheck"is Library"
Jun 29, 2012
#12 edison.r...@gmail.com
HI,
I am facing problem in the package org.mixare.lib.service. The files in the packages are .aidl files which are not getting resolved.

Thanks
Edison
Error(org.mixare.lib.service).png
136 KB   View   Download
Sep 7, 2012
#14 masp...@gmail.com
hello guys
Please help me....

I am using Windows 7 32bit, and Eclipse Helios. Currently I have changed the java compiler level to 1.6. And I have imported mixare project and mixarelib as well.
But, I can't fix the problem. 
1. Mixare project cannot set the mixarelib project as library
2. Mixarelib project cannot change as a lib, even if I change it in properties, but it said error. So i frustated to change the mixarelib project as a lib, it won't change and give me an error. So I can't compile the mixare project itself

Your answer will be very appreciated, hopefully I can finish my project with mixare. thank you
Untitled.png
163 KB   View   Download
Untitled2.png
158 KB   View   Download
Untitled3.png
24.5 KB   View   Download
Jan 3, 2013
#16 theee...@gmail.com
Hi, I have a different type of errors, when I clean the project i got theses errors. Its all about the R.java file
Screenshot from 2013-01-03 16:14:13.png
163 KB   View   Download

Powered by Google Project Hosting