zoukankan      html  css  js  c++  java
  • Android can only be built by versions 3.81 and 3.82

    在新系统中编译老版本的android source 时出现的这个问题。

    解决

    方法1:

        remove 掉现在的make, 编译安装make 3.2

    方法2:

       编辑aosp_root/build/core/main.mk

     40 # Check for broken versions of make.
     41 # (Allow any version under Cygwin since we don't actually build the platform there.)
     42 ifeq (,$(findstring CYGWIN,$(shell uname -sm)))
     43 ifeq (0,$(shell expr $$(echo $(MAKE_VERSION) | sed "s/[^0-9.].*//") = 3.81))
     44 ifeq (0,$(shell expr $$(echo $(MAKE_VERSION) | sed "s/[^0-9.].*//") = 3.82))
     45 ifeq (0,$(shell expr $$(echo $(MAKE_VERSION) | sed "s/[^0-9.].*//") = 4.1))          #<----------------------在这里让make4.1可以编译
     46 $(warning ********************************************************************************)
     47 $(warning *  You are using version $(MAKE_VERSION) of make.)
     48 $(warning *  Android can only be built by versions 3.81 and 3.82.)
     49 $(warning *  see https://source.android.com/source/download.html)
     50 $(warning ********************************************************************************)
     51 $(error stopping)
     52 endif
     53 endif
     54 endif
     55 endif                                                                                                                          #<------------------------补完ifeq
      因为人家分析make 4.1 和3.8区别不大。
  • 相关阅读:
    牛客网剑指offer第46题——孩子们的游戏(圆圈中最后剩下的数)
    不借助临时变量两数交换篇
    牛客网剑指offer第48题——不用加减乘除做加法
    牛客网剑指offer第44题——翻转单词顺序列
    双指针索引技术
    二叉树的下一个结点
    数组中的逆序对
    丑数
    野指针与空指针
    【转】以操作系统的角度述说线程与进程
  • 原文地址:https://www.cnblogs.com/blowing-in-the-wind/p/5960375.html
Copyright © 2011-2022 走看看