ant build error "Source resource does not exist CSipSimple/local.properties" FIX

1,309 views
Skip to first unread message

etamme

unread,
Jan 8, 2013, 9:22:19 AM1/8/13
to csipsim...@googlegroups.com
I am trying to setup my environment to build CSipSimple.  I am able to build the native lib with make within the CSipSimple directory, but when I try to run "ant release" from within the CSipSimple directory I am getting

"Source resource does not exist CSipSimple/local.properties"

The dev wiki should state that you must generate a local.properties for CSipSimple and for ActionBarSherlock by running

'android list target'

then running

'android update project -p . --target 1'  

replace 1 with your specified target id.  Do this within the root directory of each project checkout.cd

-Eric

Régis Montoya

unread,
Jan 9, 2013, 6:04:08 PM1/9/13
to csipsim...@googlegroups.com
Hi Eric,

Thanks for the point, I updated the wiki. The command line syntax has
evolved : it now takes "-p" for the project path and previous version of
the wiki also had only this step for the ActionBarSherlock dir.

However not needed to android list target and to specify target. As the
global files about the project properties is under revision control no
need (and risky) to change the target. The one specified in the
project.properties file is already the good one.
The local.properties is usually only about the android sdk dir and could
also contains the user/pwd for signing your apk automatically.

etamme

unread,
Jan 17, 2013, 1:17:29 PM1/17/13
to csipsim...@googlegroups.com
I am not sure I understand.  If i try to run ' android update project -p ./' from within my CSipSimple checkout directory i get

Error: The project either has no target set or the target is invalid.
Please provide a --target to the 'android update' command.

Is there a way i should point to the project.properties file?

Régis Montoya

unread,
Jan 17, 2013, 1:23:52 PM1/17/13
to csipsim...@googlegroups.com
What is your android sdk version?
Maybe I've a different one with that supported.
It could be interesting to have result of android update help.
"android -h update project"
(On my side I have :
$ android -h update project

       Usage:
       android [global options] update project [action options]
       Global options:
  -h --help       : Help on a specific command.
  -v --verbose    : Verbose mode, shows errors, warnings and all messages.
     --clear-cache: Clear the SDK Manager repository manifest cache.
  -s --silent     : Silent mode, shows errors only.

                         Action "update project":
  Updates an Android project (must already have an AndroidManifest.xml).
Options:
  -l --library    : Directory of an Android library to add, relative to this
                    project's directory.
  -p --path       : The project's directory. [required]
  -n --name       : Project name.
  -t --target     : Target ID to set for the project.
  -s --subprojects: Also updates any projects in sub-folders, such as test
                    projects.
)

As help states, only the "-p/--path" is required.


etamme

unread,
Jan 17, 2013, 1:24:13 PM1/17/13
to csipsim...@googlegroups.com
nevermind - the project.properties was specifying android-16 and i only have an android-17 avd.  my fault

Régis Montoya

unread,
Jan 17, 2013, 1:26:20 PM1/17/13
to csipsim...@googlegroups.com
Oh, Ok

Good to know : The error log from android sdk is not obvious.
Maybe I should add a line about that in the wiki.

My Developer

unread,
Mar 29, 2013, 1:38:06 PM3/29/13
to csipsim...@googlegroups.com
Hi Eric,
How are you doing? I am trying to build the apk with the instructions given in the csipsimple wiki. I am getting the exact same error as below on "local.properties" file. How did you solve this problem. Do I have to create the local.properties file? or Do I have to change the android-16 to android-17? If you can guide me with the step that would really help.

Thanks
Erik.
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
[erik@hwcmovmd1 CSipSimple]$ ant release
Unable to locate tools.jar. Expected to find it in /usr/lib/jvm/java-1.4.2-gcj-1.4.2.0/lib/tools.jar
Buildfile: build.xml

BUILD FAILED
/home/erik/CSipSimple/build.xml:7: Source resource does not exist: /home/erik/CSipSimple/local.properties

Total time: 0 seconds
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
Reply all
Reply to author
Forward
0 new messages