[Q] Java Segmentation Error - Asus Eee Pad Transformer Prime

Hello all,
I keep getting a 'segmentation error' on my Prime, but only when I'm trying to install an APK when running projects from Eclipse or when using javac on the Terminal IDE app to compile code. I've googled and searched around but found no useful solutions, and it's really bugging me!
Sorry I can't be any more specific but I'm only just getting into the Java/Android side of development. Does anyone have a solution?
Thanks for any help in advance.
Ben.

Related

[DEV] I want to develop Android apps. Please help.

Hey guys.
I'm an experienced .NET Developer and developed with java a little. I want to start developing Android apps on Windows.
I downloaded everything and my app runs, but once i debug it i get a strange error: "The JAR of this class file belongs to a container "Android 2.1-update1" which does not allow modifications to source attachments on its entries".
While looking on the internet to find a solution i came upon a few blogs that explain that i need to get the android source: http://stackoverflow.com/questions/...-container-android-2-0-1-which-does-not-allow
I'm having an immense headache getting it because nothing works. There's no simple guide to do this.
If any of you know the error and can help me solve it i would appreciate it.
Also, if you know how to get the source please let me know. I'm going crazy here.
Thanks!
lorin.bute said:
Hey guys.
I'm an experienced .NET Developer and developed with java a little. I want to start developing Android apps on Windows.
I downloaded everything and my app runs, but once i debug it i get a strange error: "The JAR of this class file belongs to a container "Android 2.1-update1" which does not allow modifications to source attachments on its entries".
While looking on the internet to find a solution i came upon a few blogs that explain that i need to get the android source: http://stackoverflow.com/questions/...-container-android-2-0-1-which-does-not-allow
I'm having an immense headache getting it because nothing works. There's no simple guide to do this.
If any of you know the error and can help me solve it i would appreciate it.
Also, if you know how to get the source please let me know. I'm going crazy here.
Thanks!
Click to expand...
Click to collapse
You say you downloaded "everything", but not what "everything" is. For mainstream development (using only public API), you don't need the Android sources.
Get the SDK, and Eclipse ADT if you want the most straightforward environment, import one of the example projects, and get it running on the emulator/device. It's pretty much all explained in this tutorial project. Then you can see what's up with your particular program. Good luck!
I have Eclipse, the latest ADT and the latest SDK. I installed the packages for 2.2 and 2.1 with the Google APIs.
I'm trying to make a simple tip calculator app. If i don't make a certain check in my app everything runs ok. As soon as i check if 3 EditTexts have text in them i get that error.
If i don't need to check, my app is behaving ok.
if(txtbillamount.getText().toString().equals("") || txtpercentage.getText().toString().equals("") || txtpeople.getText().toString().equals(""))
{
...
}
The hello world apps works fine.
lorin.bute said:
I have Eclipse, the latest ADT and the latest SDK. I installed the packages for 2.2 and 2.1 with the Google APIs.
I'm trying to make a simple tip calculator app. If i don't make a certain check in my app everything runs ok. As soon as i check if 3 EditTexts have text in them i get that error.
If i don't need to check, my app is behaving ok.
if(txtbillamount.getText().toString().equals("") || txtpercentage.getText().toString().equals("") || txtpeople.getText().toString().equals(""))
{
...
}
The hello world apps works fine.
Click to expand...
Click to collapse
Do you have an else statement?
Yes I do have an else statement. I display a pop up message in the else statement.
I would recommend getting acquainted with a little bit of java code as it is very different than .net
Your dev env seems too be ok since, The hello world app works ok as you stated, its your coding.
Coming from.net programming it was confusing for me at first.
Sent from my Nexus One using XDA app
Problem solved.
Yes, i was coding something in a wrong way. Java is different in many aspects.
Thanks.

Problem when trying to build Android from source

Sorry if it is in wrong section but...
I have got a problem and I can't find a solotion for it. I have a Xperia Z Ultra and I am trying to build AOSP Android using the guide Sony provided, but when I hit "make" it gives me an error that I have wrong java version, it looks like this (pic in attachment). I have tried different versions, added them to PATH but it still isn't working properly. Could any of you guys help a 15 yo student to learn that things? Thanks in advance!
Regards
Please, could anyone help me?
Regards
teddy74eva said:
Please, could anyone help me?
Regards
Click to expand...
Click to collapse
I would recommend checking out the first step of this guide here on compiling AOSP that deals with setting up JDK specifically it recommends using Open JDK 7 instead. Let me know if you have any questions or need further assistance in solving your problem.
Okay thanks a lot, I have managed to do it yesterday but now I'm stuck with compiling, it gives me an error when I try to build it, some conflicts in libnfc-nci, trying to cherry-pick some needed fixes also succeed in error, I'll do a screenshot when I come back from school but again, many thanks
Regards
Okay, now when I try to compile I have some errors, when I do repo sync it tells me at the end that some files need to be merged, like in pic 1. When I try to compile it gives me an error that a separator is missing in a file, like in pic 2. And when i try to cherry-pick the fixes (as in pic 3) it throws me another error, as in pic 4. My main question is: how could I merge files and what is it? Thanks in advance!
Regards

Avoid building some packages when compiling AOSP/CM/Lineage

Hi guys i was looking in Google for this but i dind't find a right answer. I found this, but doesn't seems to work:
https://gist.github.com/eyal-lezmy/33fab7689ee0d5f3dbe1
Thanks

I Need Help With Eclipse Errors

I am new to Android development. I am using eclipse to create apps. I am having problems with some errors that I can't figure out how to resolve. I have updated eclipse to the latest version. Eclipse is telling me that my ADT plugin is out dated. I've tried updating them using this site for help https://stackoverflow.com/questions...-plugin-in-eclipse-to-version-23-0-0-or-above but to no avail. Please see the following attached pictures that describes the problems I am experiencing. I appreciate all the help I can get with this! Thanks in advance!

Need help compiling a project from github site

Firstly, I don't know if this is a right site/forum to ask this question but this seems to be most active android development forum when googling for 'android development forum' even though this site seems to be mosty about rooting and mods which is not what my question is about.
I'm trying to compile github.com/corbinlc/GNURootDebian from source and make it run on my android emulator. I get 'Configuration with name 'default' not found' in android studio 3.0 when just opening the project. Can anyone help me out tackle this error?
> I tried googling / stackoverflow and couldn't find a satisfying answer
> I have successfully built and run a simple app in emulator using steps outlined in 'Building Your First App' walkthrough on developer.android.com/training/basics/firstapp/index.html
Thanks in advance,

Categories

Resources