I have cloned repository from bitbucket.org (it is my repo). But now I can't run this project.
I made next:
Import -> Project from Git
then I follow the importing guide but maybe I selected something wrong. So I can see all files in project tree that I have cloned but can't run it. What's the problem?
When I select Run As in menu I don't see any option (only Run configuration), but I want to see Run as Android project.
I also try add project using Run configuration but I don't see my ea project in Project selection list.
I don't think Eclipse is seeing it as an Android project. When you clone from git, at the last step of the importing wizard, try and selecting Create a new Project and select an android project.
Related
I'm using Android Studio 2, after migrating from Eclipse I pushed the project to a new repository. Now when I try to clone it ,it doesn't work.
After cloning it asks me :
Would you like to create a Studio project for the sources you have checked out to ?
I hit 'yes' and then "Import project from external model".
I can see then the project but I can't run it. I can't even sync with gradle files. This option is not existent.
Here is the official documentation to migrate an Eclipse project to an Android Studio: Migrating from Eclipse ADT. You should follow the step if you want your project to be usable under Android Studio since the project structure is a bit different betwwen the two environment.
You have to mantein this structure, with .idea and app directories directly in the root folder of your project, without any other wrapping folder.
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
I had an working Android project on Eclipse Mars and I wanted to add a Maven dependency. I followed some tutorials and successfully converted the project into a Maven project by using "Install New Software" for m2e, "Eclipse Marketplace" for android-m2e.
Now, I wanted to RUN the project, but all of a sudden, "run as Android Application" setting has been removed. When I tried to run as saved configuration (android application), it says "myprojectname is not an Android Project!".
I'm trying to make this work but for the whole day I'm stuck and can't figure it out :( I wish I committed the change right before I did this ..
Thank you in advance.
Solved it by myself, but I'm leaving this thread to people who might encounter similar problem.
What I did
removed both m2e and android-m2e from eclipse.
removed the project from Project Explorer in eclipse (IMPORTANT: DO NOT SELECT "DELETE PROJECT CONTENTS ON DISK(CANNOT BE UNDONE)" UNLESS YOU MEANT TO DO IT)
File->New..->Other->Android->Android Project from Existing Code -> select your project
Now I have my project generating "gen" correctly.
Hope this solves someone's problem.
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.
As the title implies I have an android project in a repository that I want to add an android test project to. I would like to have both these two projects in my repository so they can be in sync and I only have to update one of the projects to update them both. I can't seem to figure out how to do it though. Is it possible? And if so, how can it be done?
Thank you in advance!
For your test project, do the following in Eclipse: Team > Share project > SVN.
And follow Tim's advice on how to import the project into eclipse.
See the following:
Creating an Android Test project in Eclipse
If you upload to SVN in Eclipse (by syncing the MyAndroidApp project, not the MyAndroidAppTest project) you need to do a little more (I've just done it now). So when you update your other working copy it will pull down the /tests directory. The MyAndroidAppTest project does not automatically show up in the Package Explorer. So you need to go to File.. Import...Existing Projects into Workspace.... Then select the root directory by browsing to your /MyAndroidApp/tests directory and click Finish.
By: Tim