1. CD android23
2. Make
Appears:
【
Find:'Frameworks/Base/Frameworks/Base/Docs/Html': The file or directory does not exist.
] Can be ignored, or you can create the folder above.
【
<Command line>: 0: 0: Error: "_ fortify_source" redefinition [-werror] <built-in>: 0: 0: Note: This is the previously defined location
] Modify build/CORE/Combo/HOST_linux-x86.mk line 61:
-Host_global_cflags + =-d_fortify_source = 0
+ Host_global_cflags + =-u_fortify_source-d_fortify_source = 0
【
Frameworks/base/libs/utils/refbase. cpp: In the member function 'void Android: refbase: weakref_type: trackme (bool, bool:
Frameworks/base/libs/utils/refbase. CPP: 483: 67: Error: 'const Android: refbase: weakref_impl 'As 'void Android: refbase: weakref_impl: trackme (bool, bool) the Type limit [-fpermissive] is discarded when the 'This' parameter is set.
Make: *** [out/host/linux-x86/obj/static_libraries/libutils_intermediates/refbase. O] Error 1
]
Cause: GCC 11.10 of ubuntu 4.6 is too high, and GCC 4.4 is required for Android compilation.
Solution: Change GCC and G ++ version 4.6 to 4.4.
Sudo apt-Get install gcc-4.4
Sudo apt-Get install g ++-4.4
Sudo Rm-RF/usr/bin/GCC/usr/bin/g ++
Sudo ln-S/usr/bin/gcc-4.4/usr/bin/GCC
Sudo ln-S/usr/bin/g ++-4.4/usr/bin/g ++
【
G ++: Error:-fpermissive: No file or directory
Make: *** [out/host/linux-x86/obj/static_libraries/libutils_intermediates/refbase. O] Error 1
]
Solution: sudo apt-Get install g ++-4.4-multilib
【
Note: Some input files use or overwrite outdated APIs.
Note: For details, use-xlint: deprecation to re-compile.
Note: Some input files use unchecked or insecure operations.
Note: For details, use-xlint: unchecked to recompile.
]