Need help compiling a project from github site - Android Q&A, Help & Troubleshooting

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,

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.

Q... How to set up Linux dev environment

Ok I installed the jdk on 11.10 ubuntu. The installed eclipse from the software center. I'm currently installing the android sdk. All of the sdk. I'm assuming using eclipse I should install the adt plugin. I'm interested in developing an app. Any pointers would be awesome. If anyone has any links to read up on app development for newbs I would be grateful. I would like to build a ROM to, something for personal use. I would post it if I ever feel its worth it. I'm interested in learning development and i have some great ideas for apps that do not exist that could be decent money makers. Just gotta make the thing. As I already said any help or advice would be awesome. Links would be cool to read up on. And thanks in advance for anyone who helps.
Sent from my PG86100 using Tapatalk
Look in my signature for gingerbread compilation. It will help some hopefully
私のEVO 3Dから送信される。
find the thread with "dsixda rom kitchen"
When i use eclipse and go to /help/install new plugin and set it up with the links from the sdk webpage i get this error. It finds the adt plugin but then wont let me install it.
Cannot complete the install because one or more required items could not be found.
Software being installed: Android Development Tools 15.0.0.v201110251216-213216 (com.android.ide.eclipse.adt.feature.group 15.0.0.v201110251216-213216)
Missing requirement: Android Development Tools 15.0.0.v201110251216-213216 (com.android.ide.eclipse.adt.feature.group 15.0.0.v201110251216-213216) requires 'org.eclipse.wst.sse.core 0.0.0' but it could not be found
Hi mikedavis120,
Adding htt p: / SOMETHING /download.eclipse.o SOMETHING rg/releases/indigo (Indigo Repos) to your "Install Software"-List solves it.
PS: As a new user i was not allowed to post "Spam" links. I hope it's ok to 'salt' my spam with random words :]

[Q] OpenSSl for terminal

Hello,
I'm running a rooted Samsung SGS2 with the default ROM (XWKI4).
I'm writing a shell script to automate some networking tests (coming from a Linux background) and I'm looking for a way to get command line OpenSSL, compiled for the phone.
Currently, I've found a github with sources for OpenSSL for Android phones over here: github.com/fries/android-external-openssl
Could someone please help me and either direct me to a guide for building the code for my specific device or a well-functioning (command line) alternative?
Sorry for posting a question on something I'm sure is covered in a thread somewhere but apparently I'm unable to find it despite looking through quite a few FAQs and searches.

Open and customize CyanogenMod application on Eclipse

Hi,
I followed all the instructions on cyanogenmod wiki for compiling and opening the entire source tree in eclipse.
Cyanogen Open in Eclipse
Although this worked, I still don't see how I can open a specific package project and mod it because it does not compile. I have to edit everything in notepad and compile it in a linux box.
I wanted to take out a specific folder like packages/apps/Phone and built it as seperate project using the whole Cyanogen built as dependency but I don't know how to do this.
Is there anyone who knows how I can find the dependencies of a cyanogen app and manage to built a seperate project only with one app?
Thank you
+1
+1
Questions or Problems Should Not Be Posted in the Development Forum
Please Post in the Correct Forums & Read the Forum Rules
Thanks ✟
Moving to Q&A

[Q] Some basic questions about developing

Hi guys I am new here and I wanted to start programming apps for Android devices. I have some simple questions and I hope you can answer them:
1. In which language do I need to programm in Android Studio? Java or C? Or doesn't it matter?
2. Is there a list where you can find the special comments you need to develop for an Android because programming a programm for a PC is much different than programming an App for a Smartphone (for example a special command line for using the touchscreen)
3. Where can I find source codes from Apps which already have been published because I think looking at source codes from other Apps is the best way for learning.
Thanks in advance guys
bump
Anyone?

Categories

Resources