I am trying to implement Couch base in my android app following the couchbase tutorial link here
I need to add a config.json file to create my own database link rather than using its default database "Sync_gateway".According to explanation it should be inside bin directory inside a data folder but I can't find a bin directory as I installed sync gatway from .exe file. I don't find run it by any command other than clicking the .exe file. What I am I missing?
If you have installed sync_gateway in Windows then open the file location for the sync_gateway.exe it will be usually in the directory "C:\Program Files (x86)\Couchbase" . You have to place your configure.json in that directory . Now open windows command prompt and do 'cd C:\Program Files (x86)\Couchbase' and run the command 'sync_gateway.exe configure.json' . Ensure that your configure.json file is perfect and does not have any syntax errors. your Sync gateway will now load with your specified configure.json
Related
I installed android studio on my reinstalled 20.10 groovy gorilla. When I run it, I find this error:
And then I get this error if i click cancel:
Please help me solve this error.
Try to open the program from the terminal by entering the directory where the program is stored and typing open -a programNameHere. If that doesn't work, delete and reinstall the sdk.
It is more of a Linux permission related. You might have extracted android studio into /opt as they have mentioned in documentation. I can suggest few solutions.
Extract android studio in home directory of user. Make sure not to use sudo or root to extract tar. Since you are extracting in user home directory, you don't have to use root.
OR
Install (extract) Android Studio in /opt with proper permissions.
Create a new directory in /opt/android, using sudo mkdir /opt/android.
Change ownership of /opt/android directory to the current user, using sudo chown -R <USERNAME> /opt/android. Replace <USERNAME> with the current username.
Extract android studio tar file in /opt/android directory. Don't use sudo or root extract files.
PS: Above mentioned solution no. 2 is dirty solution. /opt directory is used for multi user application. To allow multiple user, we have to create system account and add current user to newly created account's group. If you are not looking for multiuser solution then go with solution 1
I have been following these directions to setup android development on a mac. I put the android sdk folder in my desktop folder so my path should be "Desktop/android-sdk-macosx", I followed the steps in the terminal but it keeps on telling me permission denied as seen here.
I went to my home directory as well and did COMMAND+SHIFT+. to show hidden files in order to add to the .bash_profile file in my home folder but couldn't find the .bash_profile there.
Here are some details of my setup that works.
Note I put my sdk folder at home, e.g. ~.
First, open up a terminal and type these commands:
cd ~
ls -a
Here is my session, and what is shows:
If you don't have a .bash_profile, then make one:
touch .bash_profile
Then, enter the command:
emacs .bash_profile
Then, set up your ANDROID_HOME and PATH, here is what mine looks like:
Note that I have the SDK manually downloaded, and I used homebrew for the NDK folder, that is why they are set up different.
I have downloaded the adt-bundle for linux and extracted it. Moved the extracted folder in "android" directory in my /home directory. I have also installed openjdk 6. So when i try to run eclipse, Pypar2 window pops up and i just don't understand how do i run eclipse.
If i uninstall PyPar2, it says 'Could not display "/home/siddhartharao17/Androi...20131030/eclipse/eclipse".' There is no application installed for executable files. Do you want to search for application to open this file?
Please help me!!
The problem is that the executable doesn't have the required permissions.
Simple resolution without using the terminal:
Right-click the executable -> Properties -> Permissions.
Check the checkbox that says Allow executing file as program.
Done!
Using the terminal:
navigate to your dir.
Execute the following:
chmod 711 eclipse
Done!
I try to create an android app using PhoneGap on my Mac. But, I only can create the app (hello) and couldn't create the Android platform for it using $ cordova platform add android command.
The error message I get is: [Error: The command android failed. Make sure you have the latest Android SDK installed, and the android command (inside the tools/ folder) added to your path. Output: ]
The screenshot:
I try to put the PATH in the bash profile file using touch ~/.bash_profile; open ~/.bash_profile method, but it still didn't work.
How to solve this problem?
try this one
install android sdk in /Applications then rename the andoid sdk folder's name to android_sdk
create .bash_profile in this directory, /Users/zulhilmizainudin
open .bash_profile then type this command
export PATH=/Applications/android_sdk/tools:$PATH
export ANDROID="/Applications/android_sdk/tools"
Save .bash_profile file
type android command in your terminal
I am implementing sdcard related application. How can I remove emulator sdcard below folder in android using sqlite in devtools?
I am using rm command but it's not working:
Example: sdcard--->project --->emp
Delete project folder using terminal controller in-built sqlite
Follow the below steps to remove the sdcard folder of your emulator:
open the command prompt
go to the directory where your android sdk --> platform-tools
type adb shell
type cd sdcard
type rmdir "folder name"