You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Run the file setup_env.sh (Linux / Mac ) or setup_env.bat (Windows) in the root folder of owncloud-android from a console. Then refresh the workspace in Eclipse and rebuild everything (owncloud-library, actionbarsherlock and owncloud-android).
If that doens't work (it should), you'll need to copy the file third_party/android-support-library/android-support-v4.jar into actionbarsherlock/library/libs , replacing the one existing there. And rebuild then.
I getting this message when I run the file setup_env.bat in console
Then I add the "library" foleder into ..\adt-bundle-windows-x86_64-20131030\android-master\actionbarsherlock and move the "libs" folder into "library" folder and run setup_env.bat again and getting this message
Error: The project either has no target set or the target is invalid.
Please provide a --target to the 'android.bat update' command.
It seems that there are sub-projects. If you want to update them
please use the --subprojects parameter.
d:\Nachai\adt-bundle-windows-x86_64-20131030\android-master>call android.bat upd
ate project -p oc_jb_workaroundcopy /Y third_party\android-support-library\andro
id-support-v4.jar actionbarsherlock\library\libs\android-support-v4.jar
Error: Argument 'actionbarsherlock\library\libs\android-support-v4.jar' is not r
ecognized.
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.
Resolved location of main project to: D:\Nachai\adt-bundle-windows-x86_64-20131030\android-master
Error: Main project target android-19 is not a valid target.
To run setup_env.bat you need to have git installed in your system, and the path to it's binary folder must be included in the PATH variable in your environment.
Did you get the source code with git, or did you download it from one of the release packages? The first option is far way better,
Activity
davivel commentedon Apr 3, 2014
Need more info.
Did you checkout and build without failure the actionbarsherlock submodule?
What information is shown in the 'Problems' tab about those files?
nachai commentedon Apr 4, 2014
Ok. This problem is solved,
I forgot to download actionbarsherlock library and import to owncloud project
thank you :)
nachai commentedon Apr 4, 2014
But I getting error messages in owncloud project
NotificationBuilderWithProgressBar.java at method
public NotificationCompat.Builder setProgress(int max, int progress, boolean indeterminate)
"The method setProgress(int, int, boolean) of type NotificationBuilderWithProgressBar must override or implement a supertype method"
please help me
thank you
davivel commentedon Apr 7, 2014
Run the file setup_env.sh (Linux / Mac ) or setup_env.bat (Windows) in the root folder of owncloud-android from a console. Then refresh the workspace in Eclipse and rebuild everything (owncloud-library, actionbarsherlock and owncloud-android).
If that doens't work (it should), you'll need to copy the file third_party/android-support-library/android-support-v4.jar into actionbarsherlock/library/libs , replacing the one existing there. And rebuild then.
Please, tell us how it results.
nachai commentedon Apr 8, 2014
I getting this message when I run the file setup_env.bat in console
Then I add the "library" foleder into ..\adt-bundle-windows-x86_64-20131030\android-master\actionbarsherlock and move the "libs" folder into "library" folder and run setup_env.bat again and getting this message
how to fix this
thank you
nachai commentedon Apr 8, 2014
d:\Nachai\adt-bundle-windows-x86_64-20131030\android-master>call git submodule init
'git' is not recognized as an internal or external command,
operable program or batch file.
d:\Nachai\adt-bundle-windows-x86_64-20131030\android-master>call git submodule update
'git' is not recognized as an internal or external command,
operable program or batch file.
--> I change the path "actionbarsherlock \library" to "actionbarsherlock" it's work
d:\Nachai\adt-bundle-windows-x86_64-20131030\android-master>call android.bat update project -p actionbarsherlock -n ActionBarSherlock
Updated local.properties
Updated file D:\Nachai\adt-bundle-windows-x86_64-20131030\android-master\actionbarsherlock\build.xml
Updated file D:\Nachai\adt-bundle-windows-x86_64-20131030\android-master\actionbarsherlock\proguard-project.txt
d:\Nachai\adt-bundle-windows-x86_64-20131030\android-master>call android.bat update lib-project -p owncloud-android-library
Error: The project either has no target set or the target is invalid.
Please provide a --target to the 'android.bat update' command.
d:\Nachai\adt-bundle-windows-x86_64-20131030\android-master>call android.bat update project -p .
Error: The project either has no target set or the target is invalid.
Please provide a --target to the 'android.bat update' command.
It seems that there are sub-projects. If you want to update them
please use the --subprojects parameter.
d:\Nachai\adt-bundle-windows-x86_64-20131030\android-master>call android.bat upd
ate project -p oc_jb_workaroundcopy /Y third_party\android-support-library\andro
id-support-v4.jar actionbarsherlock\library\libs\android-support-v4.jar
Error: Argument 'actionbarsherlock\library\libs\android-support-v4.jar' is not r
ecognized.
-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.
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.
d:\Nachai\adt-bundle-windows-x86_64-20131030\android-master>call android.bat update test-project -p tests -m ..
Resolved location of main project to: D:\Nachai\adt-bundle-windows-x86_64-20131030\android-master
Error: Main project target android-19 is not a valid target.
davivel commentedon Apr 8, 2014
Please, don't change paths in the project.
To run setup_env.bat you need to have git installed in your system, and the path to it's binary folder must be included in the PATH variable in your environment.
Did you get the source code with git, or did you download it from one of the release packages? The first option is far way better,
nachai commentedon Apr 8, 2014
OK , I don't have git installed in my system. and I download it from one of the release packages
nachai commentedon Apr 8, 2014
I'm back to squire one and follow step by step then it success !
Thank you :)
davivel commentedon Apr 24, 2014
You're welcome. Eclipse sometimes is a real mystery.
Merge pull request #452 from owncloud/dependabot/gradle/org.robolectr…