[Q] Help working with AOSP Source in Eclipse - Android Q&A, Help & Troubleshooting

I have been trying to import the android source into Eclipse (the entire root directory along with all of the files and subdirectories) as a single project as specified here in the AOSP documentation: http://source.android.com/source/using-eclipse.html
No matter what I do though, I end up with hundreds, if not thousands of errors. I have the latest Android SDK, have tried to set the build path to use either Android 4.2 AOSP APIs or Google SDK 4.2 APIs to no avail. I have also tried importing it as an Android Project and a standard Java project. I have followed all instructions for setting up the build environment correctly and checked to make sure it builds correctly using make.
I have tried to remove the sample code packages but am met with the same result.
I usually make changes directly to the file in a simple text editor like gedit but I wanted to use Eclipse to do error checking and validation.
Anyone know how to successfully get and build the android source in Eclipse? ANY help is greatly appreciated.
P.S
I am using Mint 64bit and Eclipse Juno

My first question would be, are you able to create a new Android application project that compiles successfully?

Related

[Q] unable to run project downloaded from:android app dev for dummies

hi
i am new to android eco-system.
i recently downloaded a project from the web and tried to run it but have the following error in my console output:
[2012-09-30 12:47:23 - Silent Mode Toggle] Android requires compiler compliance level 5.0 or 6.0. Found '1.7' instead. Please use Android Tools > Fix Project Properties.
i tried to do what the vague suggestion imply but could not fix it. i went to the project->properties->java compiler, and found the compiler compliance level to be 1.7. and that is the max level. i just do not know how to fix it, and this is my first project that i download and tried to run.
any suggestion will be appreciated.
thanks

Android software development Comapny

Building Your First App
Welcome to Android application development!
Welcome to Halosys technologies pvt ltd
This class teaches you how to build your first Android app. You’ll learn how to create an Android project and run a debuggable version of the app. You'll also learn some fundamentals of Android app design, including how to build a simple user interface and handle user input.
Before you start this class, be sure you have your development environment set up. You need to:
Download the Android SDK.
Install the ADT plugin for Eclipse (if you’ll use the Eclipse IDE).
Download the latest SDK tools and platforms using the SDK Manager.
If you haven't already done these tasks, start by downloading the Android SDK and following the install steps. Once you've finished the setup, you're ready to begin this class.
This class uses a tutorial format that incrementally builds a small Android app that teaches you some fundamental concepts about Android development, so it's important that you follow each step.

[Q] Looking for an IDE that I can use to do Android OS builds

[Q] Looking for an IDE I can use for building the Android OS?
I have spent many years developing applications and device drivers for Windows (short pause while people make grunting noises and snide remarks)... but I recently switched over to developing software for Android. I have begun getting acquainted with the Eclipse IDE for Android app development (I downloaded the ADK bundle), and have also tried to acquaint myself with the process of building an Android ROM (ie: downloading the source and doing a build of the entire Android OS and support software). It seems like people who develop software for Linux are hung on the idea that everything should be done via typing shell commands into the terminal, and because Android is an "off shoot" of Linux, that the core developers of Android do the same (getting the source and building the OS is always described in terms of terminal shell commands).
I much prefer have a graphical UI in which I can just click on menu items and buttons to do the selected build operations. Is there an IDE (some sort of enhanced source code editor or whatever) that I can use to automate "repo" operations and to automate building the Android OS???
mediawiz said:
[Q] Looking for an IDE I can use for building the Android OS?
I have spent many years developing applications and device drivers for Windows (short pause while people make grunting noises and snide remarks)... but I recently switched over to developing software for Android. I have begun getting acquainted with the Eclipse IDE for Android app development (I downloaded the ADK bundle), and have also tried to acquaint myself with the process of building an Android ROM (ie: downloading the source and doing a build of the entire Android OS and support software). It seems like people who develop software for Linux are hung on the idea that everything should be done via typing shell commands into the terminal, and because Android is an "off shoot" of Linux, that the core developers of Android do the same (getting the source and building the OS is always described in terms of terminal shell commands).
I much prefer have a graphical UI in which I can just click on menu items and buttons to do the selected build operations. Is there an IDE (some sort of enhanced source code editor or whatever) that I can use to automate "repo" operations and to automate building the Android OS???
Click to expand...
Click to collapse
No , that pretty much stops others that don't know Linux from trying to build android . But this pretty much only is limited to aosp roms ie cyanogen, aokp etc . Doesn't mean you can't make your own rom using stock and changing stuff like other rom devs do ...This is pretty much the difference in original development and
Development
Sent from my SM-N900P using Xparent BlueTapatalk 2

[Q] Signing as a system app - failed to install - CyanogenMod

Hi!
I'm preparing a plugin for a vendor of ROM (a small phone manufacturer) and I need this plugin to have system permission. I've tested this on a rooted Cyanogenmod install by putting the app into /system/priv-app directory and it works.
Taking this a step further, I signed the application with Cyanogenmod platform keys from the source repository (platform.pk8 and platform.x509.pem). I've successfully verified that the key used to sign release build is indeed the one from platform.x509.pem.
When I try to install this application via "adb install" I get the following error: Failure [INSTALL_FAILED_INVALID_INSTALL_LOCATION]
Investigating further, it seems that installation of applications signed with platform key is not allowed (anymore): http://stackoverflow.com/questions/...o-install-a-platform-signed-app-to-user-space
Looking in the source of PackageManagerService.java in the current Android source[1], I don't see this restriction, but I doo see it in CyanogenMod source tree[2] with this commit[3].
The question is: is this the correct approach for non-CM ROMs? What is the preferred way to work around this for CM (apart from building a custom ROM and removing this piece of code, that is)?
Regards,
Miha.
[1]: http://grepcode.com/file/repository...android/server/pm/PackageManagerService.java/
[2]: https://github.com/CyanogenMod/andr...id/server/pm/PackageManagerService.java#L4592
[3]: https://github.com/CyanogenMod/andr...mmit/6b6ca8c8b2c11de5aed6d3df00729e69f34297f6

[Q] Editing Android Kernel - looking for NFC/HCE Code

Hi,
I'm currently in the process of developing a project for my University course wherein I will be hopefully editing the functionality of the HCE Feature of Android to allow me to set my own UID when emulating a card.
Now, i've downloaded the AOSP source, and built a custom image with no edited code and installed that to my Nexus 7 (This includes downloading and including the Vendor specific hardware drivers), and i'm stuck on the next part.
I physically cannot find the device code that governs the NFC features of Android, and i'm unsure how to go about a) Looking for it, and b) How I should be editing this code.
Is the code for NFC in Android in the base Kernel? and if so how would I edit that before I run "make" again and hope it builds? or is it elsewhere? I've noticed that the files in the Vendor folder i've downloaded and extracted are in a .ncd format, which I don't think is editable.
Any help I can get on this would be greatly appreciated.

Categories

Resources