referencing (pure java) project in Android project (Could not find class) -


i trying reference pure java-project in android-project -> java-project has whole bunch of classes need use. oh, , first response pointed out: using eclipse, yes :)
problem is: not find class 'xxx', referenced method com.example.helloworld.mainactivity.oncreate. seem have missed step or error...?
did:

  • the project added project java build path (logically nessecary)
  • it marked in "order , export" in java build path , pushed top (this solved problem else here when dealing jar-files)
  • ir marked in "project references" on project settings.
  • i added folder relevant class under "libraries" in build path... not sure if should nessecary.

the java-project reference has whole load of jars, if reason, should not different errormessage?

i had same issue , after hours of frustration , search have found answer here: android, class not found imported jar file

basically, issue referenced pure-java project or generated jar built java 1.7, , android projects set use 1.6.


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -