When I install the android SDK from here http://developer.android.com/sdk/index.html
my file at the time was like adt-bundle-windows-x86_64-20140624.zip. When I ran it, the eclipse looked very different. The loading screen showed Juno instead of the android loading screen. The icon on the bottom task toolbar (windows 7) was a unknown program icon and not the eclipse icon. When it opened, it looks like this image below.
If I try to create a new android activity file, after I click finish, I expect the file to be created, but nothing happens. Also if I go to the xml layout file and go to the gui explorer, I get a bunch of errors saying some widgets didn't load. And then it doesn't show the preview.
Some things work like intellisense and being able to run app on phone.
Im not sure if this has to do with corrupted preferences, so I deleted the files in here
Eclipse Workspace\.metadata\.plugins\org.eclipse.core.runtime, but it didn't help.
Does anyone know whats wrong and how to fix it?
Thanks.
I also installed the same version adt-bundle-windows-x86_64-20140624.zip last week. It worked fine for the most part. The different icon and splash screen for Eclipse is to be expected. There were some oddities, like the link to SDK manager still pointed to my previous ADT installation.
Related
2021-04-11 Installed the newest version of android studio. When trying to start it splash screen apears loads up and then empty screen appears and after ten seconds it closes. Android studio icon disappears from the taskbar. I can see that android is started in task manager. P.S. Closing it and trying to run it again or running it as Administrator does not work.
I ran into the same problem upon upgrading my android studio. Something seems to be wrong with the process of importing settings and configurations from the old version.
Let's move the old configuration files to another backup location to see if it works. (we will not delete it, because who knows, maybe this is not the solution:) ). check these locations based on your android studio version :
for v 4.0 and upper:
C:\Users\<your user name>\AppData\Roaming\Google\AndroidStudio 4.x
for lower than 4.0 :
C:\Users\<yourUserName>\.AndroidStudio
Just move the folder to another location and start the Android studio again.
If everything is as expected, a dialog should pop up asking for importing settings and configuration:
Select 'do not import', and you are good to go.
I'm facing a very strange issue on Eclipse with Android ADT plugin.
When I try to open an XML layout file, the result is the one in the screenshot.
The Layout editor doesn't show the file name and no content is loaded. The editor stuck on "Loading editor" and if I switch to view, the XML is loaded fine.
This issue is raising up with every layout file and with every project I open.
I tried to:
restart Eclipse
update the ADT plugin
install all the packages and updates from the Android SDK Manager
no errors are shown in the console.
UPDATE
Now Eclipse is showing a pop-up error "An error has occurred. See error log for more details.java.lang.NullPointerException" when I try to open any Layout XML file.
Solution 1
At the right side of the image you attached click the android logo with 19 a drop down list will open select some different version...
selecting 20 works for me
Solution 2
right click layout file in the Package Explorer view and click
Open With -> Android Layout Editor
Right-click on your project and close all unrelated projects. Keep only one project opened at any one time.
Close all your perspectives and then open only a Java perspective.
Ensure that there is indeed a UCApplicationTheme that it has access to, otherwise change it to a different theme.
Restart Eclipse. Then restart your computer.
Then try opening a default layout from a newly generated blank Android project. Do not open the layout of a web view, even if you normally develop on Phone Gap/Cordova. Let's eliminate the web view as a possible problem.
When all else fails, reinstall Eclipse, the SDK, and ADT, completely from scratch.
And if you do get a NullPointerException, please be specific. Cut and paste on here the exact error it's giving you.
The Problem is you did update only android development tools from developer tool..
so you need to update the whole packages which are provided by the eclipse market..
Go to help-->install new software-->add the Repository-->and select all check boxes which are available in the developer tool...
Its works for me..
I'm right at the beginning of android programming.
I created an AVD that works just fine when launching via the AVD-manager.
I also "created" a hello-world app as a little test.
When I try to run the app as an android app, nothing happens. No output in the console, emulator doesn't start (or launchs app when already started), no message, nothing.
Can anyone help me?
Thanks a lot
I had the same problem. I think its because u created a project with a blank activity. so when the app starts it doesn't have anything to do..
to solve the issue just add an activity, intent and a category to your manifest file and run
Not sure if this will help you but, during our android lab sessions some computers had a slimier problem. How it was fixed is by doing the following:
Next to the "Run as" button, there is a small arrow, click it.
Select "Run configurations".
On the left, double click "Android Application".
There should be 3 tabs appearing on the right (Android, Target, Common)
Under "Android", browse and select the project you want to run.
Launch Action: select "Launch Default Activity".
Click on "Target" tab.
There should be an AVD table with the Android virtual devices you created through the manager. In case there isn't, hit refresh or click on "Manager" to make sure you have created it and then refresh again.
if there is an AVD, it should appear with a small check box on the left side of it, click it and then click on "Run".
This fixed the issue for most students, hopefully it will in your case as well. If not then I hope someone can answer it for you.
If you are using Windows, Give your SDK path in Eclipse as Windows->preferences ->Android->SDK Location
here you give your sdk path.
I'm following the Android App HelloAndroid tutorial on http://developer.android.com/resources/tutorials/hello-world.html and I seem to be doing well so far. I got the SDK downloaded and installed, emulator works... I am using Android 2.2
it works.. but I do not see the text string... This is my first android app so I am doing something wrong.
Yeah, getting Eclipse to talk to the Emulator can be a PITA. If you can debug on an actual device, don’t waste your time with the emulator.
You can look in Eclipse’s console window to see what’s up. Chances are it has installed the package, but it never got around to launching the application. Press the debug button again to see if it works, or just launch the app from the home screen manually. Unfortunately this won’t connect the debugger, but at least you can use it.
I’ve struggled with this a few times and can’t come up with anything more conclusive than “delete your emulator image and try again” or “restart Eclipse to see if it works this time”.
try the following:
unlock the emulator. if do not show text. restart the emulator or try the code
TextView tv = (TextView)findViewById(R.id.textview1);
tv.setText("first app");
....
Based on your screenshot it looks like an error occured while installing the app, you could try to install the app via adb. It's in ANDROID_SDK_FOLDER/platform-tools/ in the current sdk or in ANDROID_SDK_FOLDER/tools on the old version, where ANDROID_SDK_FOLDER is the folder where you placed your sdk. With the emulator open, use:
adb install path_to_the_apk_folder/HelloAndroid.apk
You can usually find your apk on the bin folder of your project.
Even if it doesn't work adb can give you more information about how to handle the problem.
You could also take a look at the troubleshooting tips on developer.android.com. http://developer.android.com/resources/faq/troubleshooting.html#eclipse and http://developer.android.com/resources/faq/troubleshooting.html#noapp might be relevant.
I'm getting an error when I open my main.xml, I'm not seeing the UI of my app:
Eclipse is loading framework information and the layout library from the SDK folder.
main.xml will refresh automatically once the process is finished.
Do you have fix on it? I tried googling it but nothing worked for me.
It seems yet another Eclipse quirk. There's a solution here:
http://twigstechtips.blogspot.com/2011/02/eclipse-android-development-is-loading.html
And another alternative here:
http://groups.google.com/group/android-developers/browse_thread/thread/065b4e55f0189873
This is caused when you have old jar files in your sdk directory! look here
http://androidbook.blogspot.com/2009/07/when-eclipse-loading-framework.html
if it doesnt solve the issue maybe you can try changing the target to another version of the SDK eg. 2.2 instead of 2.1 to render the view instead
Same thing happened to me couple days ago after updating SDK through android SDK Manager. When I rebooted eclipse, I got a pop-up saying my Android Development Tool (ADT) or a plugin for Eclipse needs update to version 22.6.2
Here is the information http://developer.android.com/tools/sdk/eclipse-adt.html
and click updating ADT, the download instructions are in there.
I copied it out here just in case,
Download the ADT Plugin Start Eclipse, then select Help > Install New Software. Click Add, in the top-right corner. In the Add Repository dialog that appears, enter "ADT Plugin" for the Name and the following URL for the Location: https://dl-ssl.google.com/android/eclipse/ Note: The Android Developer Tools update site requires a secure connection. Make sure the update site URL you enter starts with HTTPS. Click OK. In the Available Software dialog, select the checkbox next to Developer Tools and click Next. In the next window, you'll see a list of the tools to be downloaded. Click Next. Read and accept the license agreements, then click Finish. If you get a security warning saying that the authenticity or validity of the software can't be established, click OK. When the installation completes, restart Eclipse.
It should then work just fine.
Hope this helps.