This project at a hackathon was just simply ingenious. And as a curious noob, I want to check it out. They don't have it on PlayStore, nor did they have an APK, but I want to see how it works. So how would I run this on Android?
It's also important to note that this is not a typical Android project. This doesn't work with just importing it to android studio. Trust me, I've tried it like that.
Navigate to terminal/cmd git it by the URL:
git clone https://github.com/getSizeOf/sizeOf-Droid.git
Open Android Studio click on import project, click import project
Click on build.gradle on the project level
Project opened, get coding!!!
Try opening the project with 'project' being the root folder. I just opened it in Android Studio 1.2.2 (latest) and it works fine.
Sometimes, when you open an existing project, you have to expand to show the project structure by clicking on "1. Project" and then select "Project" from the drop-down menu (person preference).
To run on a device, select "Run" from the toolbar then click 'Run app' from the drop down menu.
Related
I need to create an android studio project from this directory on github. I tried VCS -> Checkout from Version Control in Android Studio, but there is no url for this directory in the repo, so I'm not sure hot to clone just this subdirectory.
I also tried downloading the whole repo, doing File -> New -> Import Project in Android Studio, and selecting the messaging subdirectory as the folder to import. This showed a build progress bar, but after it finished, there was no imported project.
How do I do this?
I am not sure if its the correct way, but i resolved it with the following steps on Android Studio 4.1.1 :
Run Android Studio until the Welcome to Android Studio screen shows up.
Select Get from Version Control.
Paste the URL.
Press Clone button.
This will import the complete repository , but you won't be able to run the app yet (exactly as mentioned in your question) .
Now close and re open Android Studio
On welcome screen, select import Project (Gradle, Eclipse ADT, etc.)
Navigate to the folder where the project was downloaded and select the required Sub-folder
Press OK and let the Studio build your project.
I get it now. Go back to this. Then hit Download Zip and unzip it. In Android Studio go to File -> Open -> then to the quickstart-android-master and then down to messaging. Do NOT open quickstart-android-master go down to messaging and open that.
EDIT
Be aware you will have to follow these instructions to get the project to build and run.
Add google-services.json in android studio
I have repository in BitBucket while cloning project
If I select "Ïmport Gradle project"
On clicking "OK" , it start building project , then gives error
If I select "Configure" to configure android project it build project but it didn't run .
How to resolve this error ?
launch bitbucket.org, login to your account, select the repo which you want to import. select HTTPS and copy the link.
launch Android studio. select 'Check out the project from Version Control'
paste the link, fill in other information as asked and confirm.
this will clone your bitbucket repo in the android studio.
BitBucket is a GitHUB based site.
You simply need to clone the repo you need to your local pc.
Open that repo (project) in Android Studio, and Android Studio will give you the option to enable “VCS” (This is Version Control System).
It will automatically sync with your repo, and list all your branches and so on.
You don't need to do an import, if it is already an Android Studio project.
For your error, try these as reference:
Volley might be giving you an issue (File Structure stuff)
If you have modules as part of the repo
Refer to this answer
You need to make sure that each submodule in your project has its own build.gradle file. The name 'default' happens because your outer build.gradle is trying to build a project that doesn't know how to build itself, thus it is given the name 'default.' Try doing that and see what happens.
The owner of the project should give you the access to one.
Then in android studio go to VSC tab in most top bar and select
VCS --> git --> clone..
Then in dialog popup in the first editbox past the 'httpsed' url and press "Clone"
Then wait untill project is clonned
All the questions dealing with this are now outdated. I am simply trying to open an existing Android Studio project.
I have cloned a repository for a project from http://blog.stylingandroid.com/material-part-2/
I have all the files, I choose "Open an existing android studio project" and then choose the "Material" folder which is the root directory of the project. When the project loads, it is called "gradle" and there are no files showing in the project frame.
I am using the latest version of android studio and the latest build tools as of 19 Dec 2014.
How do I import a project?
From the Android Studio welcome screen, try "Import Non-Android Studio project". It sounds like exactly what wouldn't work, but it does.
On 1.5.1, there's no Import Non-Android Studio project as the accepted answer says, but chosing Import project (Eclipse ADT, Gradle, etc.) does the trick. Open an existing Android Studio project does not work. Still quite weird.
Click on file, then click on Open. select the main file that contains the project's name without opening the file.
then Gradle loads but still nothing happens and the welcome screen is shown. press the combined keys of Alt+1 then the project files will appear on the left side of the screen.
Sometimes it is tricky to open Android project. My tip is try to use
File -> Open... -> <path_to_settings.gradle>
I am working on SIP application and using Linphone Library.
I am trying to make and run the build on the device but getting few issues
I have setup the Android SDK and NDK set up on my Mac.
Now when i copy the repo via Terminal using command
$ git clone git://git.linphone.org/linphone-android.git --recursive
And than to Makefile ran this code:
$make
and Then it show's Build Successfull.
Now i need to import this project into Eclipse and when i do this imported project (folder named "linphone-adroid") into my Eclipse it shows me alot's of projects i am confused which one should i use and if i choose all of them then it gives me lot's of errors in other's (Shown in image below)
liblinphone-android --> Ran this on Device runs fine but when i call the numbers it changes it's view and shows duration 0:00 and does not calls the numbers then i have to press hang off button to dismiss the call. (Not able to make call's)
Please suggest me how should i import this project into my eclipse and what else scripts i need to run on the terminal to make it run.
So far what i have did is right or wrong?
Yes , it worked finally.
After build using "make" command.I installed in my device using "make install". Also generated sdk using "make linphone-sdk"
And then simply imported in eclispe just like normal android project.
Without any error it worked. - thank god.
In windows8 cygwin created many issues, so i did build the code using "make" command in MAC. And then simply imported in windows eclipse. (some admin permission issue in MAC)
Note: android-ndk-R9c was failed my build. So then i tried with android-ndk-R9 without additional toolchain it worked great. Android-ndk old versions available at
(http://page2rss.com/0dc3a880ab1762303011d69d18408917).
after building the library you have to import it in eclipse
File -> New -> Other... -> Android -> Android Project from Existing Code -> Browse_your_project
Now open your application (Project which have activity) and assign linphone library which you have earlier loaded....
Right click on your project -> select Android tab from left hand side -> from the bottom library section, click on "Add..." -> you will see the listed library which you have in your eclipse workspace -> select correct one -> click "OK" -> now refresh and clean the project -> build and try to run
check complete guide on linphone android on coders hub.
As suggested by #bhavana
I was doing wrong while importing the linphone-android project into my eclipse.
The correct process is explained below-
Importing into Eclipse :
After i have made the build then now i just need to import the project into eclipse.
Step1: Go to eclipse click on File Menu then Import then select
Existing Android Code into Workspace
Hit Next and Browse to the linphone-android project folder
And Only tick linohone-android folder and Leave copy project into workspace untick
Like the below image:
And hit finish.
Now i right clicked on "linphone-android" (project name) and go to Properties and Java Build Path and then Order and Export and then reorder them as my image below and untick gcm.jar
Hit OK
And Boom No errors
Now just run it on device or emulator. (Cross check minimum target SDK matches with the device or emulator.)
The above steps worked fine for me.
I have a few projects that were previously tested to be working in 1 PC.
I've since moved to another Windows XP PC, and I've setup the development tools on this XP system. I've downloaded and installed the following in order:
1. Eclipse Classic 3.6.1
2. JDK v6(jdk-6u23-windows-i586.exe)
3. Android SDK Tools rev8(installer_r08-windows.exe)
4. SDK Platform v2.3/2.2, Google APIs, Android API8, rev2, Google USB driver, rev4
5. ADT 8.0.1
I created a new empty project just to make sure things are working, and I seem to be able to get that new project to run on the emulator just fine. However, when I imported an existing project into the workspace, I get a bunch of errors, such as:
"The import java.util cannot be resolved"
"The import android cannot be resolved"
When I look at Project Properties->Java Build Path, it shows "Unable to get system library for the project" under "Libraries" and "Order and Export". What's wrong?
I've also tried copying and pasting the .java files and main.xml files from the imported project to the new project, and it runs correctly...but somehow the imported project doesn't.
Thanks.
Right click on project name, open properties.
Select Java Build Path (from left menus)
Under the "Libraries" tab, find the entry 'Unable to get system library for project', select it then click on the Remove button.
Select Android (from left menus), tick on the version of android you want to target.
Select Project menu (main top level menu), select Clean... Select OK.
Right click on project name again, go down to Android Tools > Fix Project Properties.
That should do the trick and add Android X.X (version you selected) to your project, and the imported project should start working.
Enjoy.
I think your project does not have project target name or missing. And it's simple go to main menu : project->properties->android (from left panel) then mark a project target name as you need for your project. After this it should work if not then clean your project like this : project->clean..>select (clean projects selected below )-> mark your project then click ok. thanks
Click on Run Configurations
Click on icon at top left corner(New launch configuration)
Choose Project
Click run !