Home PC Games Linux Windows Database Network Programming Server Mobile  
           
  Home \ Linux \ Ubuntu 32 compile Android 4.0.4 Problems     - Linux source code analysis tool (Linux)

- Linux print file and send mail (Linux)

- Java exception handling mechanism (Programming)

- Linux server dual-card dual-IP and single-card dual-IP configuration method (ReHat / CentOS) (Server)

- The default permissions for files and directories under Linux computing (Linux)

- To build a private Docker registry (Server)

- Python format string (Programming)

- Ubuntu install Lighttpd + Mono support .net (Linux)

- Oracle online redefinition (Database)

- Linux server data backup (Server)

- Linux server alarms using Java (Server)

- Usage sed some of the parameters (Linux)

- MongoDB replication instance (Database)

- Vi editor Introduction (Linux)

- Install Ubuntu 14.04 and Windows 8 / 8.1 dual-boot in UEFI mode (Linux)

- Simple steps allows you to build a more secure Linux server (Linux)

- libreadline.so.6: can not open shared object file problem solution (Linux)

- How to network to share files between Windows, MAC and Linux (Linux)

- Detailed use Zabbix monitoring Nginx (Server)

- How to become a better Node.js developers in 2016 (Programming)

 
         
  Ubuntu 32 compile Android 4.0.4 Problems
     
  Add Date : 2018-11-21      
         
         
         
  First problem: the 32-bit Ubuntu 12.04 compile Android4.0.4 source when there is an error on emulator, the key is its Makefile in the -m64 parameters, which can be replaced with -m32, the following error message:

ERROR: prebuilts / tools / gcc-sdk /../../ gcc / linux-x86 / host / x86_64-linux-glibc2.7-4.6 / bin / x86_64-linux-gcc only run on 64-bit linux

make: *** [out / host / linux-x86 / obj / STATIC_LIBRARIES / emulator64-target-arm_intermediates / tcg / tcg.o] Error 1

Documents related to the need to change is as follows:

external / qemu / Makefile.target

external / qemu / Makefile.common

Second problem: The following message appears when compiling:

target Dex: core

Error occurred during initialization of VM

Could not reserve enough space for object heap

Could not create the Java virtual machine.

make: *** [out / target / common / obj / JAVA_LIBRARIES / core_intermediates / noproguard.classes-with-local.dex] Error 1

Find build / core / definitions.mk files found the following:

#TODO: Use a smaller -Xmx value for most libraries;

# Only core.jar and framework.jar need a heap this big.

# Avoid the memory arguments on Windows, dx fails to load for some reason with them.

define transform-classes.jar-to-dex

@echo "target Dex: $ (PRIVATE_MODULE)"

@mkdir -p $ (dir $ @)

$ (Hide) $ (DX) \

$ (If $ (findstring windows, $ (HOST_OS)) ,, - JXms16M -JXmx2048M) \

--dex --output = $ @ \

$ (Incremental_dex) \

$ (If $ (NO_OPTIMIZE_DX), \

--no-optimize) \

$ (If $ (GENERATE_DEX_DEBUG), \

--debug --verbose \

--dump-to = $ (@ :. dex = .lst) \

--dump-width = 1000) \

$ (PRIVATE_DX_FLAGS) \

$ <

endef

Since the contents of my computer only 2GB, then the above 2048M certainly can not meet because of the need to allocate kernel memory allocation when linux, so adjust the parameters for the small 1024M.

Will continue to compile some errors on the emulator, and consult the google official information, that is to compile on 64bit systems, replaced after 64, what mistakes did occur, compile all normal.
     
         
         
         
  More:      
 
- Java interface and inheritance (Programming)
- The AWK use Cygwin tools mysql binlog log viewer (Database)
- Linux environment Duplex (multi-machine) automatic mutual backup scheme (Linux)
- How to use Java to read OpenOffice document (Programming)
- VMware6 achieve nat Internet (Linux)
- Linux system performance and usage activity monitoring tools -Sysstat (Linux)
- Linux operating process information (Linux)
- React Getting Started Tutorial (Linux)
- OpenSSL to generate public and private key (Linux)
- Browser caching mechanism on the analysis (Linux)
- VirtualBox virtual machine can not start to solve under Ubuntu (Linux)
- To share some very useful Vim command (Linux)
- Linux more efficient than select a model epoll (Linux)
- CentOS7 install JAVA notes (Linux)
- How to install or upgrade to the Linux kernel in Ubuntu 4.2 (Linux)
- HttpClient Tutorial (Programming)
- Bitmap memory footprint of computing Android memory optimization (Linux)
- Linux host system monitoring implement the cgi (Server)
- Solve the compatibility problem between Linux and Java at the source in bold font (Linux)
- PyCharm new Python file name and the name of the module will import the same problem might arise (Programming)
     
           
     
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.