1 <html devsite><head> 2 <title></title> 3 <meta name="project_path" value="/_project.yaml"/> 4 <meta name="book_path" value="/_book.yaml"/> 5 </head> 6 <body> 7 <!-- 8 Copyright 2017 The Android Open Source Project 9 10 Licensed under the Apache License, Version 2.0 (the "License"); 11 you may not use this file except in compliance with the License. 12 You may obtain a copy of the License at 13 14 http://www.apache.org/licenses/LICENSE-2.0 15 16 Unless required by applicable law or agreed to in writing, software 17 distributed under the License is distributed on an "AS IS" BASIS, 18 WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 19 See the License for the specific language governing permissions and 20 limitations under the License. 21 --> 22 23 <p> Android Android </p> 24 25 <h2 id="build-issues"></h2> 26 27 <h3 id="missing-cellbroadcastreceiver"> toro CellBroadcastReceiver</h3> 28 <p><strong></strong></p> toro AOSP Jelly Bean 4.2.1CellBroadcastReceiver <p></p> 29 30 <p><strong></strong></p><code>vendor/samsung/toro/device-partial.mk</code> <code>PRODUCT_PACKAGES</code> K H<p><strong></strong> 4.2.2 </p> 31 32 <h3 id="missing-cts-native-xml-generator"> CTS XML </h3> 33 <p><strong></strong> IceCreamSandwich <code>/bin/bash: line 0: cd: cts/tools/cts-native-xml-generator/src/res: No 34 such file or directory</code></p> 35 <p><strong></strong> Makefile </p> 36 <p><strong></strong></p> 37 <h3 id="black-gingerbread-emulator"> Gingerbread </h3> 38 <p><strong></strong> Gingerbread </p> 39 <p><strong></strong>Gingerbread R7 Gingerbread </p> 40 <p><strong></strong> R12 </p> 41 <pre><code>$ repo forall platform/external/qemu -c git checkout aosp/tools_r12 42 $ make 43 $ emulator -kernel prebuilt/android-arm/kernel/kernel-qemu-armv7 44 </code></pre> 45 <h3 id="emulator-built-on-macos-107-lion-doesnt-work"> MacOS 10.7 Lion </h3> 46 <p><strong></strong> MacOS 10.7 Lion / XCode 4.x </p> 47 <p><strong></strong></p> 48 <p><strong></strong> SDK XCode 3 MacOS 10.6 MacOS 10.7 </p> 49 50 <h3 id="partial-and-emulator-builds"><code>WITH_DEXPREOPT=true</code> </h3> 51 <p><strong></strong></p> 52 <p><strong></strong> Dex </p> 53 <p><strong></strong> <code>export WITH_DEXPREOPT=false</code> Dex <code>make installclean</code> </p> 54 <h3 id="permission-denied-during-builds"></h3> 55 <p><strong></strong></p> 56 <p><strong></strong> Android </p> 57 <p><strong></strong> Android </p> 58 <h3 id="build-errors-related-to-using-the-wrong-compiler"></h3> 59 <p><strong></strong> <code>cc1: error: unrecognized command line option "-m32"</code></p> 60 <p><strong></strong>Android Android NDK</p> 61 <p><strong></strong>shell</p> 62 <h3 id="build-errors-caused-by-non-default-tool-settings"></h3> 63 <p><strong></strong> <code>member [...] in archive is not an object</code></p> 64 <p><strong></strong>Android <code>CDPATH</code> <code>GREP_OPTIONS</code></p> 65 <p><strong></strong> Android</p> 66 <h3 id="build-error-with-40x-and-earlier-on-macos-107"> MacOS 10.7 4.0.x </h3> 67 <p><strong></strong> MacOS 10.7 IceCreamSandwich 4.0.x<code>Undefined symbols for architecture i386: "_SDL_Init"</code></p> 68 <p><strong></strong>4.0.x MacOS 10.7 </p> 69 <p><strong></strong> MacOS 10.6 MacOS 10.7 master </p> 70 <pre><code>$ repo init -b master 71 $ repo sync 72 </code></pre> 73 <h3 id="build-error-on-macos-with-xcode-43"> MacOS XCode 4.3 </h3> 74 <p><strong></strong> XCode 4.3 </p> 75 <p><strong></strong>XCode 4.3 gcc llvm llvm gcc </p> 76 <p><strong></strong> XCode 4.2</p> 77 <h3 id="build-error-with-40x-and-earlier-on-ubuntu-1110"> Ubuntu 11.10 4.0.x </h3> 78 <p><strong></strong> Ubuntu 11.10 IceCreamSandwich 4.0.x<code><command-line>:0:0: warning: "_FORTIFY_SOURCE" redefined [enabled by default]</code></p> 79 <p><strong></strong>Ubuntu 11.10 gcc Android </p> 80 <p><strong></strong> Ubuntu 10.04 Ubuntu 11.10 master </p> 81 <pre><code>$ repo init -b master 82 $ repo sync 83 </code></pre> 84 85 <h2 id="source-sync"></h2><h2> 86 87 </h2><h3 id="difficulties-syncing-the-source-code-proxy-issues"></h3> 88 <p><strong></strong><code>repo init</code> <code>repo sync</code> HTTP 403 500</p> 89 <p><strong></strong> HTTP </p> 90 <p><strong></strong> Python 2.7 <code>repo sync -j1</code> </p> 91 <h3 id="difficulties-syncing-the-source-tree-virtualbox-ethernet-issues">VirtualBox </h3> 92 <p><strong></strong> VirtualBox <code>repo sync</code> <code>DownloadError: HTTP 500 (Internal Server Error: Server got itself in trouble)</code></p> 93 <p><strong></strong>VirtualBox NAT repo sync NAT </p> 94 <p><strong></strong> VirtualBox NAT</p> 95 <h3 id="difficulties-syncing-the-source-tree-dns-issues">DNS </h3> 96 <p><strong></strong> <code>repo sync</code> <code><urlopen error [Errno -2] Name or service not known></code></p> 97 <p><strong></strong> DNS </p> 98 <p><strong></strong></p> 99 <p> <code>nslookup</code> IP Address</p> 100 <pre><code>$ nslookup googlesource.com 101 $ nslookup android.googlesource.com 102 </code></pre> 103 <p> <code>/etc/hosts</code></p> 104 <pre><code>aaa.bbb.ccc.ddd googlesource.com 105 eee.fff.ggg.hhh android.googlesource.com 106 </code></pre> 107 <p> <code>etc/hosts</code></p> 108 <h3 id="difficulties-syncing-the-source-tree-tcp-issues">TCP </h3> 109 <p><strong></strong> <code>repo sync</code> 99% </p> 110 <p><strong></strong>TCP/IP <code>repo sync</code> </p> 111 <p><strong></strong> Linux <code>sysctl -w net.ipv4.tcp_window_scaling=0</code> MacOS rfc1323 </p> 112 113 <h2 id="runtime-issues"></h2> 114 <h3 id="camera-and-gps-dont-work-on-galaxy-nexus"> GPS Galaxy Nexus </h3> 115 <p><strong></strong> GPS Galaxy Nexus </p> 116 <p><strong></strong>Android </p> 117 <p><strong></strong></p> 118 119 </body></html>