I have tried Import into Subversion but it showing error.
Cannot import to svn: Cannot run program "svn": CreateProcess error=2, The system cannot find the file specified.
Check this tutorials. This would help. I believe you were following this earlier.
Basically, create a golder named min3d, under the folder named Java from your project structure, and copy the source you had downloaded into the created mind3d folder.
Then right click - > add as reference/library. This should fix it.
Cannot run program "svn" <- this looks like you have to install SVN
you can optain it from: http://tortoisesvn.net/
Or verify that you are able to open SVN from command-shell:
Open a shell and type: svn --help
In case you get an error stating, that svn could not be found, you have to
set your path environment var.
The PATH is the system variable that your operating system uses to
locate needed executables from the command line or Terminal window.
(SVN) Subversion is a source version control system (VCS). Subversion
manages files and directories, and the changes made to them, over
time. This allows you to mange and recover diffent stages of your
development process.
Related
I have been working with Android SDK for a while & just came across an requirement to use the NDK
So, I downloaded the Android NDK for Windows. Jumping on the first example, when I am trying to build the library using the process defined in the NDK example
http://developer.android.com/sdk/ndk/overview.html
Specifically the command /ndk-build from the command line
I am getting the error
ndk-build is not recognized as an internal or external command, operable program or batch file
I have added the path for ndk-build in the PATH variable and even tried calling the command going to the folder, still the same error
Does anybody have a clue?
Guess that should have been an answer instead of a comment.
You must use Cygwin as your shell in order to run ndk-build.
See http://www.cygwin.com/
Once you have Cygwin installed you can have Eclipse automatically build your project for you by:
Right click on your project, pick properties.
Select "builders" from the left-hand list.
Click "New..." on the right side.
Select "Program" as the configuration type. I name mine "Native Builder"
Location - c:\cygwin\bin\bash.exe
Working Directory - c:\cygwin\bin
Arguments -
(for NDK r3):
--login -c "cd /cygdrive/c/Android_NDK && make APP=myapp"
(for NDK r4):
--login -c "cd /cygdrive/c/ && /cygdrive/c/Android_NDK/ndk-build"
Make sure you have the two hyphens before login and the quotes after the hyphen-c
Now go to the refresh tab
Check "Refresh resources upon completion"
Select "Specific resources"
Click on the "Specify resources" button and select your project's
lib directory.
Check "Recursively include sub-folders"
Now go to the build options tab
Check "Allocate Console"
Check "Launch in background"
Check "Run the builder After a Clean"
Check "Run the builder During manual builds"
Check "Run the builder During auto builds"
Check "Specify working set of relevant resources"
Click on "Specify Resources"
Select your project's JNI directory and all files within.
Now click OK on the bottom.
Now you can edit and save in your c files and it will compile and create the .so file on the fly.
Maybe, your development IDE hides system PATH and uses it's own PATH. I had same problem with MOTODEV Eclipse for Android 3.1. Detailed solution is here: How to solve problem with Motodev Eclipse for Android 3.1: wrong PATH It is for MOTODEV IDE, but Eclipse may have same thing.
I was trying to upload my project to GitHub on Android-Studio.
Pushing to GitHub master... process never ends and Version Control Console gives this Error:
GitHub --credentials get: github: command not found
'C:\Users\SA'EED~1\AppData\Local\Temp\git-askpass-2722525787662236837.bat" "Username'
is not recognized as an internal or external command, operable program or batch file.
I only find an empty repository on my GitHub.
Assuming that you have the latest version of GitHub, check your git path.
Settings->version Control -> Path to git-executable
It should be something like -> C:\Program Files (x86)\Git\cmd\git.exe
Note this may vary upon where you have installed GitHub.
Try
Test
It should be a success. Try to push your code again.
If this does not work try solution 2
Solution 2:
Simply make a copy of your project(copy and paste) in some other location. Delete the .git physically from the new copy. Import the new copy into android studio again. Go to version control System(VCS)->Import into Version Control->Share project on github or bitbucket(whichever you have set up). Then enter master password and new repository name. Then your setup is complete and push your code.
You might find the answer you're looking for in this post: http://jrxie.blogspot.de/2014/02/github-credentials-get-github-command.html
tl;dr: you want to add your equivalent of the following folder to your PATH.
C:\Users\YOUR_USER_NAME\AppData\Local\Apps\2.0\LNKHAB6L.QR1\LP7D7JB2.E6Z\gith..tion_317444273a93ac29_0003.0000_c74cce3a838f9354
The folders inside Apps\2.0 are probably named differently, but you shouldn't have any problems finding the right ones.
I m making an app which shares its file from assets folder and I m sharing an xml file to other app it gives me this exception
java.io.FileNotFoundException: This file can not be opened as a file descriptor; it is probably compressed
I got this TUTORIAL but at point number 7 it says that "ADD THIS SECTION TO THE END OF build.xml" so where can I get this build.xml??
And any way around to resolve this exception??
I m using MAC OS X
Run android update project -p ..., where the ... is the path to the project. This will create or update the build.xml and related command-line build files. This assumes that your SDK's tools/ directory in your PATH; otherwise, you will need to fully-qualify the path to the android command.I hope it will helps you .
Follow this Procedure To Use build.xml
Go to your Android SDK installation, and open the file "tools/ant/build.xml", copy the complete "test" target and paste it in the "build.xml" of the test project, before the import of build.xml, so before the comment starting with "Import the actual build file". There is more information on how to customize targets in that comment.
If its Confusing Follow this for Complete Ant....
Hope You understand..
When i am trying to import a project to my workspace it shows an error
[2013-03-17 16:14:15 - Unable to launch cygpath. Is Cygwin on the
path?] java.io.IOException: Cannot run program "cygpath":
CreateProcess error=2, The system cannot find the file specified
this project contains jni libraries,it is a ndk based project.why this error happen i cant import this project to my system.
go to your project right click there.then take properties and select the c/c++ build and there you can see the build settings .and in the build settings give the path of ndk in your system like:
D:\android\android-ndk-r8d\ndk-build.cmd NDK_DEBUG=1
Now clean your project and run. Thats it.
With NDK r8d, you don't need cygwin. Maybe the project you import was tuned for an older version, and maybe it defined ndk-build.sh as the C++ build command. You should use ndk-build.cmd or simply ndk-build (utilizing Windows command line conventions)
You can set an environment variable
NDK_HOME = [your path to ndk]
Today i was update my android sdk to new android adk-17 .
i am facing some problems in this, that is unable to show AddMob in my app, if i remove addmob in the code able to run the app without any errors otherwise not. what is the solution for this, is this bug in new sdk.
this is the Logcat information
Caused by: java.lang.ClassNotFoundException: com.google.ads.AdView in loader
dalvik.system.PathClassLoader[/data/app/com.veritra.iflipout-1.apk]
Maybe the ADK update has messed-up with your project's build-path.
Try removing the admob JAR and add it again to your libs folder, add it to your Build Path and do a Clean Project.
Anyway it's hard to help you without more details on the error you encounter.
EDIT following poster's comment about not having a libs folder:
You should try this:
Remove all references to the AdMob JAR in your project -> your code should not build without error anymore
Create à libs folder at the root of your project
Copy the AdMob JAR into the libs folder
Make sure this AdMob JAR is in your Build Path (this will allow your code to build wihtout error)
(If still not running OK) Right click your project > Android Tools > Fix Project Properties
The 'problem' here is that the SDK is a lot more strict about the libraries. If you do not check the library as 'exported' in eclipse, it is not added to your APK, leading to this nasty class not found exception. You should mark your libraries as exported.
Project Properties | Java Build Path | Order and Export
when I updated my SDK it was total mess. Well, the only I had to change was the PATH in Environment Variables.
http://developer.android.com/sdk/installing.html :
Adding both tools/ and platform-tools/ to your PATH lets you run command line tools without needing to supply the full path to the tool directories. Depending on your operating system, you can include these directories in your PATH in the following way:
On Windows, right-click on My Computer, and select Properties. Under the Advanced tab, hit the Environment Variables button, and in the dialog that comes up, double-click on Path (under System Variables). Add the full path to the tools/ and platform-tools/ directories to the path.
On Linux, edit your ~/.bash_profile or ~/.bashrc file. Look for a line that sets the PATH environment variable and add the full path to the tools/ and platform-tools/ directories to it. If you don't see a line setting the path, you can add one:
export PATH=${PATH}:/tools:/platform-tools
On a Mac OS X, look in your home directory for .bash_profile and proceed as for Linux. You can create the .bash_profile if you don't already have one.