Then i have installed all file of SDK and i have created the New Android Application Project, I saw the src is empty, so there wasn't the MainActivity and a lot of file like the apk or ActivityMain.
I cleaned a lot of time the project and "Build automatically" is flagged.
Eclipse doesn't "run" the apk because there isn't...
Anyone know what the problem could be?
You might have unchecked the "Create activity" box in the New Android Application Project wizard. To generate a new Activity, right click the project and press "New" -> "Other" -> Expand "Android" -> "Android Activity". Now a wizard for creating an Activity should appear.
Whenever you build your project after that, an .apk file should be created.
Try updating.
Click "Help" -> "Install new software" and install from https://dl-ssl.google.com/android/eclipse/
I had the same issue before. It seems that the version I downloaded was not up to date.
I was also facing this problem, but i figured out. I choosed Empty Activity in step 6 instead of Blank Activity, rest of steps are same as yours.
1. New Android Application Project
2. Selected API 19 4.4 KitKat for Minimum, target and compile with SDK.
3. Theme Holo Light
4. Uncheck create custom launcher
5. Make sure create activity IS checked, everything else left alone
6. Create activity checked on next screen and selected Empty Activity
7. Activity Name and Layout Name left as defaults.
8. Click finish..
I hope this will work for you too.
Related
I'm very new to Android programming, and I wanted to try learning by example. I found this open source project on Github: https://github.com/android/platform_packages_apps_contacts
I was hoping to open this in Android Studio so I could modify certain elements and see the result by running it, eventually learning how the process works as a whole. The problem is when I download the zip file and try to open the folder inside with Android Studio, nothing shows up. Any help would be appreciated!
In Android Studio, close all open projects until you get the "Welcome to Android Studio" screen. Choose "Check out project from Version Control", and in the popup, choose "GitHub". Screenshot:
Follow the UI from there.
Try to checkout it directly into Android Studio, VCS->Checkout from version Control->Git
Open all projects using:
Import project (Eclipse ADT, Gradle, etc)
I usually open my project that is saved in Google Drive in other computer, and the next option never work to me:
Open an existing Android Studio project
I always use the first option to avoid problems.
Use Open an existing directory in Android studio.
Navigate the project you wish to open to the directory containing such folders as:
manifest
java/src
res
...etc.
Now, Open.
By default, on Android Studio 2.2.2, when you open an existing Android Studio project, you land on an empty page showing only the name of your project on the top left (just below the open, save, refresh shortcuts icons) but side panels that contains your project structure and details are hidden.
You can open these panels either by pressing "alt + 1" as suggested on the background of the "starting IDE page" or by clicking on menu: "View" -> "Tool Buttons".
I am attempting to create an android project through eclipse as I have many other times, but today Im having a strange problem. After choosing new project - Android project - setting my name and target SDK - icon/empty activity etc. When I have to name the empty activity I enter a name and if I click Finish nothing happens and the name activity menu stays there. The next button is greyed out.
The only thing I can do is cancel out from there. In my project explorer the project HAS been created though. There are no src files, no activity or anything really. A small manifest file and some empty resource files.
Im not familiar with the icons associated with these files and folders. I dont know why this is happening. I have tried "Help" -> "Install new software" and install from url: https://dl-ssl.google.com/android/eclipse/ and have also tried updating and install all current SDK's but nothing seems to work.
Has anyone else experienced anything similar?
So when I create my project using Android ADT (v22.3.0-887826) I target android 4.3 and have everything set to default. The src folder is completely empty. From my understanding from the lynda tutorial I am following, it should generate a general MainActivity.java. I triple checked and made sure when I was creating the project, that Create Activity was checked.
I have also tried to create a new Activity (New -> Other -> Android -> Android Activity) and it generates nothing.
You need to update the adt basically I followed this steps: How can I update my ADT in Eclipse?
and after that when you create a new project you will see a new MainActivity.java and the layout automatically created also added this activity in the manifest.First step: go to Help and click on Install New Software
Second step: Click on add button, Name: add a name, Location: add this url https://dl-ssl.google.com/android/eclipse/ and click ok
Third step:select both options, click on next, wait until instalation is complete.after that restart the adt and create a new project.
I've downloaded the ADT Kit from the Android Developer Website, but if I try to create a new Project (New-> Android Application Project), the Manifest file is not created. In the console window, I get the message:
'[2013-12-13 15:50:08 - package name] AndroidManifest.xml file missing!'
How can I solve the problem?
I already tried to clean the Project and run again, but the xml file isn't created. I tried also to uninstall (delete) the SDK and download it again, but there is the same mistake.
I found the solution:
First, I Updated my SDK, but it wasnt the problem. The problem was the character 'ö' in the project / package name. Eclipse didn't create the Manifest because of him.
It's a German App...
To fix this problem, right click the project or edited resource and select “Refresh”.
If you edit outside of Eclipse a lot, you can enable auto-refresh by going to Window->Preferences menu, then in the Preferences dialog box, select General > Workspace.
Check the “Refresh automatically” box.
and even in the eclipse in the top menu bar you can find search-->check the automatically build
I watch all of these Android tutorials online and am getting more and more into Android programming and I find it to be a slight hassle to have to go to File>New>Other>Android>Android Project every time, especially when the person I'm watching has it on theirs.
It would be very helpful if someone could provide me with a way for Android Project (and Android XML File) to be put on that "New" menu.
Thanks
You can add 'Android Project' to the 'New' menu (and customize others) as follows:
Window > Perspective > Customize Perspective... > Tab 'Menu Visibility' > Expand 'File' > Expand 'New' > Tick 'Android Project'
The first one is new android project and the last one is new android xml file.
you can also customize what you want to add thru customize prespective by right clicking the menu area.
If your using eclipse in the toolbar the 8th icon is to Create New Project (its a folder with a a and a + sign sticking out the top of it).
Are you sure you have your eclipse configured properly? I think you need to install ADT and Android SDK first.
If you already have installed them, restart your eclipse to work with it properly.
If not and want to check how and where to install check here.
Following these instructions can enable all these things you want. Feel free to comment.