Android :: Buildsystem On Ubuntu 10.04 X86-64 Occrur Internal Compiler Error
Jul 22, 2010
I'm trying to build android system ; enviroment: ubuntu 10.04, gcc-4.4 jdk 1.6-0-20
get source code follows http://source.android.com/source/download.html
$ . build/envsetup.sh
$ choosecombo
$ make
then compiler error occurs:
CODE:........
In line 554: the code below:
CODE:...........
View 2 Replies
Aug 9, 2010
Currently I am trying to compile native code for Android. The code is from the OpenCV port for Android. I pasted all the code correctly in my project and edited my make files accordingly. When I set android:debuggable to false everything works fine and I get my native library. When I try while android:debuggable is set to true I get an error.
Here is a part of the log:
CODE:....................
From what I have found on the internet this is caused by the optimization level of the compilation. As long as the code isn't compiled so that is is debuggable afterwards everything should be fine.
Now apparently it is possible to avoid this by setting APP-OPTIM := release in the Application.mk or adding -O2 to LOCAL_CFLAGS. I have tried both and still I get this error.
Right now I don't really care that much about debugging my native code, but I would like to have basic debugging enabled. And I don't want to keep switching android:debuggable in my manifest every time I want to compile. I'm not even sure if it is okay at all if I just set android:debuggable to false pre compiling and to true post compiling, but I am sure I will forget it every second run.
View 1 Replies
View Related
Aug 20, 2010
My Android app runs fine, but: If I insert a call to WebView.setScrollbarFadingEnabled, it crashes saying:
Could not find method android.webkit.WebView.setScrollbarFadingEnabled, referenced from [my class]
VFY: unable to resolve virtual method 289: Landroid/webkit/WebView;.setScrollbarFadingEnabled (Z)V
I am using Android 1.5, not a custom ROM. My app defines minSdkVersion="3" I always clean before compiling.
Is setScrollbarFadingEnabled unavailable in Android 1.5? If so, why don't I receive a compiler error?
View 1 Replies
View Related
Jul 15, 2009
I've run into the following issue:
Say I have an Animal class, which is parcelable, and I have a Dog class and a Cat class, which are subclasses of Animal and also implement Parcelable.
Say I have a service with the following AIDL interface:
sendAnimals(List<Animal> animals);
Now I'm calling this remote interface from some client application, passing it a List containing Cats and Dogs. What happens now is that android calls the Cat's and the Dog's writeToParcel() methods at the client side, but at the server side, the Animal's CREATOR is used, which calls Animal's readFromParcel() method. So the right data is sent from the client, but the wrong unmarshalling code is executed at the server.
I have tried to put this in the AIDL file:
sendAnimals(List<T extends Animal> animals);
This results in a syntax error from the aidl compiler though.
My current workaround is as follows: - In each specific Animal subtype's writeToParcel() method, I write the class name as a String into the Parcel as the first element. - In the Animal's CREATOR.createFromParcel() I read the first String out of the parcel, and based on that I create the appropriate type and call the appropriate readFromParcel() method.
I think this is kind of ugly though. I would expect the android framework to take care of this for me.
(My application is not actually dealing with animals, this is just to make it simpler to explain the issue)
View 7 Replies
View Related
Jan 28, 2010
I am facing an issue as below when building kernel image. Code...
View 2 Replies
View Related
Oct 7, 2010
I see a lot of posts about writing to the SD card, but I believe my problem is different. I am unable to create the SD card during the process of building an AVD.
I initially tried to use the Android SDK and AVD Manager to do this, selecting
Name: my_avd
Target: Android 2.2 - API Level 8
SD Card: Size: 1024 MiB
Skin: Built-In: Default (HVGA)
Hardware: Property: Abstracted LCD Density, Value: 160
This pops up a window with the message:
"Result of creating AVD 'my_avd':
Error: Failed to create the SD card."
I tried to repeat the process from the command line, receiving a similar error:
CODE:........
Attempting to follow instructions for using mksdcard was equally unproductive; I think my basic lack of linux experience may be causing me a problem here. When I try to use mksdcard, it just reports that it cannot find the file or directory. Is the mksdcard tool available for use this way in linux?
CODE:..........
I've added the android tools directory to my PATH variable, but I feel like there is obviously something else I'm missing. Perhaps some kind of access rights?
Attempting to run the android command with sudo did not seem to help either:
CODE:..............
I even tried installing Eclipse and the ADT plugin and running the manager from there to no avail. Any tips would be most appreciated. Advanced warning that I am somewhat of a novice Linux user, so even if it seems like a no-brainer obvious thing to check, I could still have missed it.
View 1 Replies
View Related
Jan 19, 2009
I am trying to download the android source onto a new ubuntu 8.10 installation on a x86 machine. All the steps worked fine until I tried to init the repo client. I get the following. I can't find anyone else having such an repo error. I did find an obscure message that said the python error might be due to a missing readline module. I tried to install lib32readline5-dev as in the download instructions and got the following error Any ideas anybody? I am somewhat new to linux but have had a fair amount of unix experience in the past. Code...
View 14 Replies
View Related
Oct 2, 2010
I am working on an SMS Sending application and for login purpose i want to send the username and password using POST method from my Android Application to the web server.When i click on login button the application is not resopnding and the console prints the following message in response of the Post request.
View 1 Replies
View Related
Aug 21, 2010
whenever i try to set up stock facebook app i keep getting an internal error has occurred. i put in name and password hit next says adding account then i get that message. i downloaded the one from the market and it works fine.
View 1 Replies
View Related
May 3, 2010
Is anyone able to explain to me exactly what the upcoming JIT compiler will provide? For example, I have Java programs that generate bytecode at runtime which I would like to port to android. Will the JIT compiler make this possible by converting the runtime generated Java byte code to Dalvik at runtime as required?
View 2 Replies
View Related
Feb 8, 2009
For example, will this result in any performance gain:
-- public static final boolean DEV_MODE = false;
if(DEV_MODE){ // log stuff, compute debug values etc. }
View 2 Replies
View Related
May 13, 2010
I just read that Android has a 450% performance improvement because it added a JIT compiler, I know what JIT is, but I don't really understand why is it faster than normal compiled code? or what's the difference with the older approach from the Android platform (the Java like run compiled bytecode).
View 5 Replies
View Related
Jul 26, 2010
I'm using Eclipse with ADT to develop my project, but for some reason my AIDL files are not getting compiled into Java files. Is there a way to explicitly invoked the conversion of my AIDL files?
View 2 Replies
View Related
Oct 7, 2009
Is there a way to control the optimization level of the java compiler that Eclipse uses when building a project?Or is this question not relevant anymore, is all optimization deferred to the vm? The results of this tests imples test_f() is not being inlined, even though it really is a prime candidate for it. It should also be possible to do this inlining at compile time.I investigated this further, and it turns out Dalvik doesn't do inlining at this date.
View 1 Replies
View Related
May 7, 2010
It is clear that cross compilers will not be allowed by the Apple App Store, so a developer will need to be familiar with Objective-C to create applications for the iPhone.I was wondering, is there a cross compiler that will take Objective-C application code and rebuild it into a similar Java application that can be packaged for Android? That way, a developer could still learn just one language (obj-c) but put out applications on many devices.I understand that the Java port would be less optimal than a natively coded application, but could conceivably save a developer some time.
View 4 Replies
View Related
Jul 1, 2010
As I've heard from Google IO 2010 session, Dalvik JIT compiler just support ARM processor.Do this mean my own build of Android source on Linux X86 or Mac OS X can not support JIT compiler?Should I use some target board with ARM processor to test Dalvik JIT compiler?
View 2 Replies
View Related
May 17, 2010
I want to add -Xlint:deprecated to the java compiler while building android app.I've seen the compilerarg tag inside javac tags, but the generated build.xml for the standard project doesn't have such a tag.
View 1 Replies
View Related
Oct 14, 2010
The following code was copied from one project to another. No errors in project one.
In project 2 I get:
-The method onClick(View) of type new View.OnClickListener((){} must override a superclass method
-implements androd.view.View.OnClickListener.onClick
View 1 Replies
View Related
Aug 15, 2010
I want to implement my own Tokenizer base on the file
"MultiAutoCompleteTextView.java",
but I encounter an error "com.android.internal.R cannot be resolved" when I try to
import "MultiAutoCompleteTextView.java" to my project.
code:.................
I haven't research any solutions to resolve this problem.How to correct "com.android.internal.R.attr.autoCompleteTextViewStyle" my own attr?
View 1 Replies
View Related
May 20, 2010
Let's discuss board. Will the new JIT Compiler for 2.2 (FroYo) be faster than overclocking? And when we have 2.2 can we over clock?
View 4 Replies
View Related
Jan 5, 2014
I have a xperia u, which has not external SD card slot..
Data partition is MUCH bigger than what I need (I'm using 500mb of 2gb) and I want to move obb files to data partition to free some space in SD partition..
View 9 Replies
View Related
May 1, 2009
Has anyone been able to get the sdk version 1.5 to work with Ubuntu 9.04 (64 bit)? I have tried the upgrade from and it fails with: Eclipse throws a "An SWT Error has occurred" message then I get a second dialog saying: pingUsageServer failed Android SDK Ping pingUsageServer failed. Anyone else getting this? I tried to do a reinstall of the sdk and eclipse and I have the same issue. Everything worked great with SDK 1.1 R1. Any help would be greatly appreciated.
View 9 Replies
View Related
Oct 26, 2009
It appears as though the emulated GSM portion of the android emulator is not working on my system. After scouring the web I have yet to find anyone with information about what might be causing the problem. When I fire up my avd (any avd), it says "No Service" If I go to Settings -> Mobile Networks -> Network Operators, I get an error message: "Error while searching for networks" I am running Ubuntu 9.04 x64 desktop edition. I have SDK 1.6r1 downloaded. I'm hoping this is a simple thing to fix.
View 5 Replies
View Related
Apr 29, 2009
Is Ubunto 9.04 compatible with development in Android? Before i ugrade, deploy on device was normal. Now, using 9.04, doesn't recognize it using "adb devices". This below is already set on my ubuntu: 1. Login as root and create this file: /etc/udev/rules.d/50- android. rules.
For Gusty/Hardy, edit the file to read: SUBSYSTEM=="usb", SYSFS{idVendor}=="0bb4", MODE="0666"
For Dapper, edit the file to read: SUBSYSTEM=="usb_device", SYSFS{idVendor}=="0bb4", MODE="0666" 2. Now execute: chmod a+rx /etc/udev/rules.d/50-android.rules
View 8 Replies
View Related
Nov 27, 2009
I have installed Karmic Koala (Ubuntu 9.10) and have installed Eclipse 3.5 (Galileo) on the same. When I tried to install ADT, I am getting the following error message:
"Cannot complete the install because one or more required items could not be found. Software being installed: Android Development Tools 0.9.4.v200910220141-17704 (com.android.ide.eclipse.adt.feature.group 0.9.4.v200910220141-17704) Missing requirement: Android Development Tools 0.9.4.v200910220141-17704 (com.android.ide.eclipse.adt.feature.group 0.9.4.v200910220141-17704) requires 'org.eclipse.gef 0.0.0' but it could not be found" Can someone point me to where I can find this missing plug in?
View 7 Replies
View Related
Jul 30, 2010
This is my first post and it should be an interesting one. Today I was trying to install Ubuntu on my rooted Galaxy S Vibrant. But, When I was moving the Contents of the download to my SD card, I realized that I didn't have enough space. I had a 2 gig SD card and the contents were just over 2 gigs (Plus the SD card really only had about 1.9 gigs) so obviously THAT wouldn't work. So I asked around and someone said that they had dropped the ubuntu contents into the internal memory instead of the SD card on their Moto DROID. Basically I am wondering if it is possible to do the installation process through my 16gb internal memory instead of the sd card. So for example in the guide telling you how to install ubuntu on android where it says to access the files for installation, they wouldn't be in the SD card, they would be in the internal memory.
View 10 Replies
View Related
Jan 25, 2009
I shut down my PC (running Ubuntu 8.10, fully updated) overnight and when I booted the following day, 'adb devices' failed to recognize my stock, OTA-updated, RC30 G1. I followed the instructions listed here:
http://code.google.com/android/intro/develop-and-debug.html#developin...
evan@evan-desktop:~$ cat /etc/udev/rules.d/50-android.rules SUBSYSTEM=="usb", SYSFS{idVendor}=="0bb4", MODE="0666" evan@evan-desktop:~$ adb kill-server && adb devices
* daemon not running. starting it now *
* daemon started successfully *
List of devices attached emulator-5554 offline
To answer some preliminary questions:
- Yes, I have my phone on.
- It's on a USB 2.0 port.
- Yes, it sees the emulator(s), but not my device.
- Yes, "USB debugging" is enabled on the phone (and I tried toggling it).
- I've rebooted both the phone and the PC.
- I'm using the latest the 1.0_r2 SDK from the site.
- I'm on 64-bit Ubuntu, but it also fails to work in my 32-bit VM (that also previously worked)
View 3 Replies
View Related
Nov 5, 2009
During my very short time experience with Android, I found that Linux is most suitable environment for development compared to Windows. Please correct me if I'm too inexperienced. My question is, Which version of the Linux is best suitable. [Redhat/Fedora/Ubuntu..] Please let me know. Is Linux version really matters.
View 6 Replies
View Related
May 3, 2010
Was not able to launch the emulator on Ubuntu 10.04. Getting the below error in eclipse. Is there a work around or a fix for this?
[2010-05-02 23:35:34 - HelloWorld] Automatic Target Mode: Unable to detect device compatibility. Please select a target device. 2010-05-02 23:35:39 - HelloWorld] Launching a new emulator with Virtual Device 'android15' [2010-05-02 23:35:42 - HelloWorld] New emulator found: emulator-5554 [2010-05-02 23:35:42 - HelloWorld] Waiting for HOME ('android.process.acore') to be launched... [2010-05-02 23:35:43 - emulator] XIO: fatal IO error 11 (Resource temporarily unavailable) on X server ":0.0" [2010-05-02 23:35:43 - Emulator] after 7 requests (6 known processed) with 0 events remaining. [2010-05-02 23:35:43 - HelloWorld] emulator-5554 disconnected! Cancelling 'com .paad.chapter2 .HelloWorld activity launch'
Is this a known issue with the 10.04 Lucid lynx ubuntu? You received this message because you are subscribed to the Google Groups "Android Developers" group.
View 5 Replies
View Related
Aug 6, 2010
When I trying run Android Emulation, i Have error message:
$ tools/emulator -avd Default -verbose -debug-all
emulator: found SDK root at /opt/android-sdk-linux_86
emulator: /home/jupeter/.android/avd/Default.ini: parsing as .ini file
emulator: 1: KEY='target' VALUE='android-8'
emulator: 2: KEY='path' VALUE='/home/jupeter/.android/avd/Default.avd'
emulator: /home/jupeter/.android/avd/Default.ini: parsing finished
emulator: root virtual device file at /home/jupeter/.android/avd/Default.ini
emulator: virtual device content at /home/jupeter/.android/avd/Default.avd
emulator: /home/jupeter/.android/avd/Default.avd/config.ini: parsing as .ini file........
View 1 Replies
View Related