Android project referencing “normal” java project in eclipse since sdk tools update 17

前端 未结 5 2323
甜味超标
甜味超标 2020-12-15 19:57

Since the latest android sdk i am unable to run my android applications from eclipse anymore because they cant find classes which i have in other eclipse projects, which are

5条回答
  •  北荒
    北荒 (楼主)
    2020-12-15 20:39

    I added an ant project builder that copies the class files from the dependent project. The ant file resides in the android project and copies the class files from the referenced project. Here's the ant:

    
    
        
            
                
                
            
        
    
    

    2 things to remember:

    1. Find a way to copy the jar files that the referenced java project uses, or just put them directly into the Android libs folder.
    2. The referenced project must be compiled with in the 1.6 compliance level.

提交回复
热议问题