Need help with Eclipse - Android Software Development

Hey guys i need some help.
I'm a newbie in this programming. I'm trying to learn about Android SDK and i'm learning through tutorials in the SDK website. The problem is, i'm having trouble opening xml files in Eclipse. When i double click the xml, the software will either crash or stopped responding.
Anyways I'm running Eclipse Helios on Win7 64bit. Any help?

JDK?
which JDK do you have?
install the 1.6

ezeygtr40 said:
Hey guys i need some help.
I'm a newbie in this programming. I'm trying to learn about Android SDK and i'm learning through tutorials in the SDK website. The problem is, i'm having trouble opening xml files in Eclipse. When i double click the xml, the software will either crash or stopped responding.
Anyways I'm running Eclipse Helios on Win7 64bit. Any help?
Click to expand...
Click to collapse
I got the same problems every time when I click on the string.xml.
Eclipse throw a java.lang.NullPointerException
Who can help me ?

Marinelli.Tv said:
I got the same problems every time when I click on the string.xml.
Eclipse throw a java.lang.NullPointerException
Who can help me ?
Click to expand...
Click to collapse
I found a solution for my problem.
Go Window -> Preferences
XML -> XML Files -> Editor
Uncheck "Use inferred grammar in absence of DTD/Schema"
Now I can edit XML files without errors !

Marinelli.Tv said:
I found a solution for my problem.
Go Window -> Preferences
XML -> XML Files -> Editor
Uncheck "Use inferred grammar in absence of DTD/Schema"
Now I can edit XML files without errors !
Click to expand...
Click to collapse
Tried ur method but still the same

learnandroid said:
which JDK do you have?
install the 1.6
Click to expand...
Click to collapse
I'm using JDK 6 update 21

Marinelli.Tv said:
I found a solution for my problem.
Go Window -> Preferences
XML -> XML Files -> Editor
Uncheck "Use inferred grammar in absence of DTD/Schema"
Now I can edit XML files without errors !
Click to expand...
Click to collapse
ezeygtr40 said:
Tried ur method but still the same
Click to expand...
Click to collapse
Although i setup eclipse a while back, i sitll remember i tried that and still got random freezing / null when editing xmls. My fix happened to be using a 32-bit eclipse with 64 bit jdk I know, but wht can i say, it works

Daneshm90 said:
Although i setup eclipse a while back, i sitll remember i tried that and still got random freezing / null when editing xmls. My fix happened to be using a 32-bit eclipse with 64 bit jdk I know, but wht can i say, it works
Click to expand...
Click to collapse
u mean i need to reinstall the eclipse with 32bit n 64bit jdk?

ezeygtr40 said:
u mean i need to reinstall the eclipse with 32bit n 64bit jdk?
Click to expand...
Click to collapse
Well is ur cpu 64 bit compatible? if so then yea that how mines setup n haven't had any errors.

Daneshm90 said:
Well is ur cpu 64 bit compatible? if so then yea that how mines setup n haven't had any errors.
Click to expand...
Click to collapse
yup i'm using AMD Anthlon 64 X2...currently i'm running eclipse 64bit with jdk 64bit
and another thing...in java webpage....between Eclipse IDE for Java EE Developers, Eclipse IDE for Java Developers and Eclipse Classic 3.6.0.....which 1 do i actually have to pick?

For java developers. For reference heres the version i have : jdk1.6.0_21
Good luck.

ezeygtr40 said:
Hey guys i need some help.
I'm a newbie in this programming. I'm trying to learn about Android SDK and i'm learning through tutorials in the SDK website. The problem is, i'm having trouble opening xml files in Eclipse. When i double click the xml, the software will either crash or stopped responding.
Anyways I'm running Eclipse Helios on Win7 64bit. Any help?
Click to expand...
Click to collapse
Fix is here:
http://www.eclipse.org/forums/index.php?t=msg&th=171988&start=0&
I chose the .ini method. In my case when I wanted to edit the manifest file - it would freeze on WIN7 - 64bit

scouzi said:
Fix is here:
http://www.eclipse.org/forums/index.php?t=msg&th=171988&start=0&
I chose the .ini method. In my case when I wanted to edit the manifest file - it would freeze on WIN7 - 64bit
Click to expand...
Click to collapse
Thanx i will give it a shot today
Sent from my Milestone using XDA App

scouzi said:
Fix is here:
http://www.eclipse.org/forums/index.php?t=msg&th=171988&start=0&
I chose the .ini method. In my case when I wanted to edit the manifest file - it would freeze on WIN7 - 64bit
Click to expand...
Click to collapse
WOW finally it worked!! I used the .ini method also...thanx man!

This is the crash i get
https://docs.google.com/file/d/0BwsES0K61ZeqcTRvWTJlMXJRX1k/edit?usp=sharing
I know its an issue between java and eclipse but it driving me friggin crazy, as if learning to program isnt difficult enough with out above poping up after tjhe "Java SE has stopped working" message.sorry if the link is weird it seems to be the way its linking on XDA to google drive.
I would love some help.
Thank you in advance.

Related

Eclipse 4.2.2

To get started, I installed the Android SDK with ADT that also came with eclipse (unknown to me it came with eclipse) after I installed the Eclipse for JAVA developers. Neither one works as it says it can't locate the JAVAW file under jre/bin that's suppose to be in the eclipse folder. Anyhow, to see if I could fix it I cut the JRE folder from my Java folder, and placed it in the eclipse folder. It attempted to run this time but gave me an error saying it couldn't open the jvm.dll file. I then went back after watching the xdatv video and installed the eclipse classic. Still a no go. I also realized I have no JDK installed, which I'm doing so now, but either or I thought it would run with a JRE too.
Anyone got a fix for my issue? Or will installing the JDK be the fix?
Ok sorry for the stupid question. turns out I did install the jdk but a re-install fixed my issue.
Well, it's not really directly related with the problem you had, but next time you need to download the Android SDK, there is an option not to include the Eclipse in the bundle.
Are you setting up a build environment ? The reason I ask is there are a few easy ways to set it, using a more painless way.
dirtydroidx said:
Are you setting up a build environment ? The reason I ask is there are a few easy ways to set it, using a more painless way.
Click to expand...
Click to collapse
I am. The problem was resolved, and able to start eclipse with no problem now.

Install XAPs into Windows 8

I want to install .XAP files into windows 8 so I can use the apps, How do I manually do that?
Thanks
dfxda said:
I want to install .XAP files into windows 8 so I can use the apps, How do I manually do that?
Thanks
Click to expand...
Click to collapse
You don't, Windows 8 doesn't run .XAPs at all.
netham45 said:
You don't, Windows 8 doesn't run .XAPs at all.
Click to expand...
Click to collapse
Thank you for the quick response. I didn't know that, what is the metro apps extentions then?
It's .appx. You won't find too many of them floating around, though you can get them from the store.
netham45 said:
It's .appx. You won't find too many of them floating around, though you can get them from the store.
Click to expand...
Click to collapse
Cool thanks, and are they self extracting and installing or do I have to use a loader or something?
dfxda said:
Cool thanks, and are they self extracting and installing or do I have to use a loader or something?
Click to expand...
Click to collapse
Get a developer license (Google it for how), fire up powershell, run 'add-appxpackage c:\path\to\app.appx'.
Also, see http://blogs.msdn.com/b/uk_faculty_...metro-apps-without-using-microsoft-store.aspx
netham45 said:
Get a developer license (Google it for how), fire up powershell, run 'add-appxpackage c:\path\to\app.appx'.
Also, see http://blogs.msdn.com/b/uk_faculty_...metro-apps-without-using-microsoft-store.aspx
Click to expand...
Click to collapse
Thank you for all your help bud, and have a good night
dfxda said:
Thank you for all your help bud, and have a good night
Click to expand...
Click to collapse
No problem. Good luck with whatever you're doing.
I believe just right-clicking the PS1 script and selecting Run in Powershell and then following the prompts will work; it should walk you through the entire process of dev-unlock and cert installation and app installation automatically. Generally speaking, any .APPX bundle intended for redistribution will include this script.

Can't get Android Studio to work - Gradle issue

Hello XDA.
I have used Eclipse, and wanted to try out Android Studio.
The problem is, when creating a new project, i get a "Resolve Error":
Failed to import Gradle project: Could not create an instance of Tooling API implementation using the specified Gradle distribution 'h**p://services.gradle.org/distributions/gradle-1.6-bin.zip'.
Could not determine implementation class for service 'org.gradle.tooling.internal.protocol.ConnectionVersion4' specified in resource 'jar:file:/C:/Users/Me/.gradle/wrapper/dists/gradle-1.6-bin/72srdo3a5eb3bic159kar72vok/gradle-1.6/lib/gradle-launcher-1.6.jar!/META-INF/services/org.gradle.tooling.internal.protocol.ConnectionVersion4'.
C:\Users (Access is denied)
Consult IDE log for more details (Help | Show Log)
Click to expand...
Click to collapse
Seems like noone else got this problem.
I run as Administrator.
Why XDA, WHY?
Are you really creating totally new, empty project? That error message sound more like your gradle has problems importing an existing gradle project.
I'm running into the same issue, and yes, when creating a totally new project this error raises... Even though, after pressing ok, it continues loading (linux version)...
Sent from my LG-P350 using xda app-developers app
Broke'n'Droid said:
Are you really creating totally new, empty project? That error message sound more like your gradle has problems importing an existing gradle project.
Click to expand...
Click to collapse
Yes, like dbarrera said.
This is Windows version.
Any idea?
Have you tried updating your SDK and have you checked your gradle.build in root folder for any errors?
Sent from my SAMSUNG-SGH-I747 using xda premium
ansfent had
tepews said:
Hello XDA.
I have used Eclipse, and wanted to try out Android Studio.
The problem is, when creating a new project, i get a "Resolve Error":
Seems like noone else got this problem.
I run as Administrator.
Why XDA, WHY?
Click to expand...
Click to collapse
I ran into all sorts of trouble trying to set up Android Studio on my Windows 7 64 bit machine: Missing environment variables, mismatching JRE/Android SDK versions, Gradle compatibility issues, etc., etc. After serveral failed attempts, I finally gave up and went back to my old reliable ADT/Eclipse IDE. I don't want to sound pessimist, but I would give it a little more time.
hey Guy's...
if you have problems with gradle try to download the gradle-1.6-bin.zip from http://services.gradle.org/distributions/gradle-1.6-bin.zip and then copy it to the *\Android\android-studio\lib* directory.
"
Download Gradle from its distribution page at http://services.gradle.org/distributions/gradle-1.6-bin.zip
Then you should copy all the contents of gradle-1.6 to \Android\android-studio\plugins\gradle directory
You should also copy the gradle.jar file to \Android\android-studio\lib\ directory"
Finally you should restart Android Studio. After restart everything should work fine.
let me know if it work`s :silly:
It`s Weekend... :highfive:
I have a lot of problems with Android Studio, so I will work with Eclipse until Google fixes all bugs.
still not working...
dude1986 said:
hey Guy's...
if you have problems with gradle try to download the gradle-1.6-bin.zip from and then copy it to the *\Android\android-studio\lib* directory.
"
Download Gradle from its distribution page at
Then you should copy all the contents of gradle-1.6 to \Android\android-studio\plugins\gradle directory
You should also copy the gradle.jar file to \Android\android-studio\lib\ directory"
let me know if it work`s :silly:
It`s Weekend... :highfive:
Click to expand...
Click to collapse
I've tried this process, but it's not working...
Everytime I try to start a new project, I receive a message:
org.jetbrains.plugins.gradle.settings.GradleSettings cannot be cast to org.jetbrains.plugins.gradle.settings.GradleSettings
Do you know what could be causing this?
Thanks in advance.:good:
Finally you should restart Android Studio. After restart everything should work fine.
Hi,
If anyone has trouble with Android Studio, try to install it not in C:// (for Windows), but in another partition. I use it, and it always worked. And also, Android Studio usually will download Gradle by itself automatically.
If the problem still persist, try to re-install (re-download the newest version if necessary). Based on my tips above.

Android Studio Won't Build Projects

Hello,
I have made a few test projects and I am trying to build them, but I am getting Error 1 in the Messages window. The full error says:
Code:
Gradle: Execution failed for task ':HelloWorld:dexDebug'.
> Failed to run command:
C:\Users\Aaron\AppData\Local\Android\android-studio\sdk\build-tools\android-4.2.2\dx.bat --dex --output C:\Users\Aaron\AndroidStudioProjects\HelloWorldProject\HelloWorld\build\libs\HelloWorld-debug.dex C:\Users\Aaron\AndroidStudioProjects\HelloWorldProject\HelloWorld\build\classes\debug C:\Users\Aaron\AndroidStudioProjects\HelloWorldProject\HelloWorld\build\dependency-cache\debug C:\Users\Aaron\AppData\Local\Android\android-studio\sdk\extras\android\m2repository\com\android\support\support-v4\13.0.0\support-v4-13.0.0.jar
Error Code:
1
Output:
'C:\Program' is not recognized as an internal or external command,
operable program or batch file.
Can anybody help me out here? Is this because I am running Android Studio through studio.bat? It won't start through the proper icon, I get 'Failed to load JVM DLL', but my JDK_HOME and JAVA_HOME are both set up fine.
Thank you,
OrangeFlash81
Where do you have installed Eclipse? Try moving installation folder to something like C:\AndroidDev\eclipse
Sent from my LG-P350 using xda app-developers app
AS unstable
dbarrera said:
Where do you have installed Eclipse? Try moving installation folder to something like C:\AndroidDev\eclipse
Sent from my LG-P350 using xda app-developers app
Click to expand...
Click to collapse
He's not using Eclipse, he's using Android Studio. I've read many threads about the IDE differences and a general conclusion is that it's better to still use Eclipse for development because it is more stable so maybe you should try to setup your project in Eclipse for the time being @OrangeFlash81
Sorry, my bad.. I meant Studio installation path... I use Android Studio (Linux) daily without issues... In Windows I've seen most issues are because of Java and spaces in paths... Hence my recommendation is to place the IDE in a path without spaces...
Sent from my LG-P350 using xda app-developers app
I've completely given up with Android Studio now, I'm just goings back to Eclipse, which works fine.
Thanks for the help anyway!
Having some trouble with Android Studio? Have you take a look to my guide here? I hope it could helps.
By the way, for Android Studio installation. I recommend you not to install at C: partition, especially if you're using Windows 7. And for the directory, I think the advice not to put it in a directory with blank spaces is also worth considered too. If you have any problems with Android Studio, post it here. I'm glad to help. Don't give up to quickly! :highfive:
OrangeFlash81 said:
I've completely given up with Android Studio now, I'm just goings back to Eclipse, which works fine.
Thanks for the help anyway!
Click to expand...
Click to collapse
OrangeFlash81 said:
I've completely given up with Android Studio now, I'm just goings back to Eclipse, which works fine.
Thanks for the help anyway!
Click to expand...
Click to collapse
yes, me too. I think android studio is still in its early beta. My android studio won't launch after the first run. I tried reinstalled it again and again, this problem still linger. Leave me no choice but go back to eclipse.

Android Studio add sdk

Hi,
I'm new to android development and decided to start by making my first app. I'm trying to reference an sdk to use but can't seem to get it working. I created a new android project and am using the 500px api. But I cant seem to find out how to use it. I think it may be an issue with the build.gradle file as there is nothing in it. I can't import the sdk at all.
Can someone please help me.
Sincerely,
Tom Jones
lostAstronaut said:
Hi,
I'm new to android development and decided to start by making my first app. I'm trying to reference an sdk to use but can't seem to get it working. I created a new android project and am using the 500px api. But I cant seem to find out how to use it. I think it may be an issue with the build.gradle file as there is nothing in it. I can't import the sdk at all.
Can someone please help me.
Sincerely,
Tom Jones
Click to expand...
Click to collapse
Did you go to File -> Project Structure -> Project (In Left Column) -> Click "New..." or "Edit" under Project SDK. This is how I have always done it. Makes sure to add a JDK first I believe.
goldfingerfif said:
Did you go to File -> Project Structure -> Project (In Left Column) -> Click "New..." or "Edit" under Project SDK. This is how I have always done it. Makes sure to add a JDK first I believe.
Click to expand...
Click to collapse
I ended up downloading intellij and got it working in seconds, for some reason my build.gradle was just not working out.

Categories

Resources