I use Eclipse for android development.
I have downloaded source code using Team Foundation Server plugin.
It is following structure:
root/
MainSource
LibraryFolder1
LibraryFolder2
After downloading I cannot start it as android application. In "Run As" menu this item dowsn't exists.
BUT
if I create new project as Android Application Project then this menu item (Run As -> Android Application) exists.
I have an idea: maybe I need to:
1.download source code from tfs.
2.import source code as Import -> Existing Android Code Into Workspace
Please support me how to do it correctly.
The problem was that I downloaded root folder. But need to download each folder separately
Related
i made the project with flutter using android studio,
and i carried out the coarse "Right click the Project root folder -> Flutter -> Open Android module in Android Studio." to use some function.
When I open different project, it is opened in existing flutter setting lilke this (photo 2).
But when I open that (carried out the practice 'open android module in android studio') project, it is opened in real android studio setting like this(photo1).
but i want to use the project in existing setting(like photo2) from now(like photo 1).
i want to use dart file... how can i do?
Flutter is my first coding, so I'm nooblette to using all program.
Please save me. thankyou....
You have opened the android folder as a project simply close the project and open a new project as root of your fluter project then it will open as a flutter project as you shown in first picture..
I am developing a flutter app for both iOS and Android. When generating the APK, I prefer to use Android studio (my default IDE is VSCODE). However, when I go to Tools > Flutter I do not see Open Android Module in Android Studio option. I do see Open iOS Module in Xcode.
I followed couple of SO answers, even tried replacing android.iml file from a working project. Nothing happened. I re-cloned my project from BitBucket because sometimes the Android Studio was fine when the project is freshly from repo, but this time, that didn't work either.
I Also tried opening the gradle file and looking for the option (as explained in one SO answer), that didn't work too.
However I noticed, few issues.
In the folder structure, the root folder is replaced by the flutter icon. in projects where I have no issues with, the folder icon is folder.
In here I see .dart_tool folder. In working apps with no issue, I do not see this folder.
I do not have an android.iml file. In other projects I did.
Below is my folder structure in a nutshell. Whats going on here and how to fix this issue?
When you don't see any options to
open module in android studio
because of missing .iml files caused by .gitignore file, follow simple steps.
Click on File and choose Open..
Now in the opened dialog choose android folder of example flutter project under your plugin module. For e.g if test is your plugin with example as it's app then you need to select and click Ok
test\example\android
3. Then wait for Android Studio to sync and download necessary jar files.
Simplest solution
Open flutter project
Go to android folder
open manfiest file
On the top right you will see option open module in android studio
click on this option
Solution 2:-
Import your android project as a project in android studio
The easiest way is to use this command in the root directory of your project, it will create some missing files and it will definitely work.
flutter create --platforms=android .
Now just right click to Android folder
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 know how to import android source code into eclipse, but is there any way to import android source code into android studio. Because I want to change my IDE from eclipse to android studio.
I know this was already answered, but I wanted to add onto this for anyone else that sees this.
For Android studio:
Open terminal (*nix system) call the following:
{AOSP root}/make idegen && development/tools/idegen/idegen.sh
This will generate an android.ipr file in the {AOSP root} directory.
In Android Studio, select 'Open project' and select the generated android.ipr file.
Note: this will take a long time to index all the files (~2 hours). Be patient. If a dialog box that says 'Framework detected' appears, select that and hit 'OK'.
Now you have the entire Android framework loaded into Android Studio.
I found the answer from my colleague, he told me that , use the file in
sourcecode/development/ide/eclipse/.classpath
this file is for eclipse to import android source code . but there is a way to transfer this file into a intellij project import file . sorry , I also don't know how to transfer. but my colleague email me a *.iml file.yeah ,this is the file that can help you crate the intellij module .
After you get the file ,copy that *.iml file to the root of your sourcecode,then you can open the intellij,create a empty project ,import module from existing module ,then in the window ,chose the *.iml file ,after that ,the only thing you can do is wait . it takes much time to import it.
so ,you can develop the android source code in intellij . enjoy it!
Follow the steps to Migrate to Android Studio:
Export from Eclipse
In Eclipse, select File > Export.
In the window that appears, open Android and select Generate Gradle build files.
Select the project you want to export for Android Studio and click Finish.
Import to Android Studio
In Android Studio, close any projects currently open. You should see the Welcome to Android Studio window.
Click Import Project.
Locate the project you exported from Eclipse, expand it, select the build.gradle file and click OK.
In the following dialog, leave Use gradle wrapper selected and click OK. (You do not need to specify the Gradle home.)
That's all you need to do. For more you may refer to official doc.
check this link
http://effie.io/opening-aosp-with-intellij-part-3/
this has all the steps to open AOSP In intellij or Android studio, with some additional steps to fix some errors.
I'm just starting to developing for the android platform. I'm still in "reading lots of code" phase. I downloaded the source code from android's music player into eclipse, now I want to run it on the emulator but eclipse tells me that the "selection cannot be launched".
Is there something missing?
I used this tutorial to get the code: http://www.vogella.de/articles/EGit/article.html and the git repository is: https://android.googlesource.com/platform/packages/apps/Music
If you want to run a project you have to put into the eclipse
first put you project in your workspace.
then go to Eclipse-> file-> import and find your project.
when you have your project into eclipse open AndroidManifest.xml file
and find the number of android:minSdkVersion.
Finally and go to... Eclipse-> Window-> Android SDK and AVD manager and create you SDK with the number of android:minSdkVersion
Now you are ready to run your application.