I am using netbeans 7.2 with the NBAndroid extension. In my Android project, I refer to a library (ActionBarSherlock), which is not in the bank (for some reason it cannot be). The problem is that netbeans does not see classes from this library and gives me errors (the package does not exist, etc.) However, it builds and works OK, the library is added correctly. Netbeans just doesn't see it.
Here is a screenshot .
Here is a similar question, no solution com.actionbarsherlock.app exists
Is there any way to fix this? Thanks for the help!
EDIT: So, I found a way to solve this problem, this is more a workaround than a solution. I created a jar file from library classes called classes.jar. I put it in the libs folder, so netbeans sees this. Than I created custom_rules.xml (it was imported through build.xml). In it, I move class.jar from the libs folder, so I can create it, and in the end I will return it.
<?xml version="1.0" encoding="UTF-8"?> <project name="imported"> <copy file="libs/classes.jar" todir="./" /> <delete file="libs/classes.jar" /> <target name="-post-compile"> <copy file="./classes.jar" todir="libs/" /> <delete file="./classes.jar" /> </target> </project>
Jaa-c
source share