`
fanfq
  • 浏览: 270907 次
  • 性别: Icon_minigender_1
  • 来自: 苏州
社区版块
存档分类
最新评论

Failure [INSTALL_FAILED_OLDER_SDK]

 
阅读更多

/build/core/version_defaults.mk

#
# Copyright (C) 2008 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

#
# Handle various build version information.
#
# Guarantees that the following are defined:
#     PLATFORM_VERSION
#     PLATFORM_SDK_VERSION
#     PLATFORM_VERSION_CODENAME
#     DEFAULT_APP_TARGET_SDK
#     BUILD_ID
#     BUILD_NUMBER
#

# Look for an optional file containing overrides of the defaults,
# but don't cry if we don't find it.  We could just use -include, but
# the build.prop target also wants INTERNAL_BUILD_ID_MAKEFILE to be set
# if the file exists.
#
INTERNAL_BUILD_ID_MAKEFILE := $(wildcard $(BUILD_SYSTEM)/build_id.mk)
ifneq "" "$(INTERNAL_BUILD_ID_MAKEFILE)"
  include $(INTERNAL_BUILD_ID_MAKEFILE)
endif

ifeq "" "$(PLATFORM_VERSION)"
  # This is the canonical definition of the platform version,
  # which is the version that we reveal to the end user.
  # Update this value when the platform version changes (rather
  # than overriding it somewhere else).  Can be an arbitrary string.
  PLATFORM_VERSION := AOSP
endif

ifeq "" "$(PLATFORM_SDK_VERSION)"
  # This is the canonical definition of the SDK version, which defines
  # the set of APIs and functionality available in the platform.  It
  # is a single integer that increases monotonically as updates to
  # the SDK are released.  It should only be incremented when the APIs for
  # the new release are frozen (so that developers don't write apps against
  # intermediate builds).  During development, this number remains at the
  # SDK version the branch is based on and PLATFORM_VERSION_CODENAME holds
  # the code-name of the new development work.
  PLATFORM_SDK_VERSION := 9
endif

ifeq "" "$(PLATFORM_VERSION_CODENAME)"
  # This is the current development code-name, if the build is not a final
  # release build.  If this is a final release build, it is simply "REL".
  PLATFORM_VERSION_CODENAME := AOSP
endif

ifeq "" "$(DEFAULT_APP_TARGET_SDK)"
  # This is the default minSdkVersion and targetSdkVersion to use for
  # all .apks created by the build system.  It can be overridden by explicitly
  # setting these in the .apk's AndroidManifest.xml.  It is either the code
  # name of the development build or, if this is a release build, the official
  # SDK version of this release.
  ifeq "REL" "$(PLATFORM_VERSION_CODENAME)"
    DEFAULT_APP_TARGET_SDK := $(PLATFORM_SDK_VERSION)
  else
    DEFAULT_APP_TARGET_SDK := $(PLATFORM_VERSION_CODENAME)
  endif
endif

ifeq "" "$(BUILD_ID)"
  # Used to signify special builds.  E.g., branches and/or releases,
  # like "M5-RC7".  Can be an arbitrary string, but must be a single
  # word and a valid file name.
  #
  # If there is no BUILD_ID set, make it obvious.
  BUILD_ID := UNKNOWN
endif

ifeq "" "$(BUILD_NUMBER)"
  # BUILD_NUMBER should be set to the source control value that
  # represents the current state of the source code.  E.g., a
  # perforce changelist number or a git hash.  Can be an arbitrary string
  # (to allow for source control that uses something other than numbers),
  # but must be a single word and a valid file name.
  #
  # If no BUILD_NUMBER is set, create a useful "I am an engineering build
  # from this date/time" value.  Make it start with a non-digit so that
  # anyone trying to parse it as an integer will probably get "0".
  BUILD_NUMBER := eng.$(USER).$(shell date +%Y%m%d.%H%M%S)
endif
 

直接改成你想要的版本就ok了。

 

#
# Copyright (C) 2008 The Android Open Source Project
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#      http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

#
# Handle various build version information.
#
# Guarantees that the following are defined:
#     PLATFORM_VERSION
#     PLATFORM_SDK_VERSION
#     PLATFORM_VERSION_CODENAME
#     DEFAULT_APP_TARGET_SDK
#     BUILD_ID
#     BUILD_NUMBER
#

# Look for an optional file containing overrides of the defaults,
# but don't cry if we don't find it.  We could just use -include, but
# the build.prop target also wants INTERNAL_BUILD_ID_MAKEFILE to be set
# if the file exists.
#
INTERNAL_BUILD_ID_MAKEFILE := $(wildcard $(BUILD_SYSTEM)/build_id.mk)
ifneq "" "$(INTERNAL_BUILD_ID_MAKEFILE)"
  include $(INTERNAL_BUILD_ID_MAKEFILE)
endif

ifeq "" "$(PLATFORM_VERSION)"
  # This is the canonical definition of the platform version,
  # which is the version that we reveal to the end user.
  # Update this value when the platform version changes (rather
  # than overriding it somewhere else).  Can be an arbitrary string.
  PLATFORM_VERSION := AOSP
endif

ifeq "" "$(PLATFORM_SDK_VERSION)"
  # This is the canonical definition of the SDK version, which defines
  # the set of APIs and functionality available in the platform.  It
  # is a single integer that increases monotonically as updates to
  # the SDK are released.  It should only be incremented when the APIs for
  # the new release are frozen (so that developers don't write apps against
  # intermediate builds).  During development, this number remains at the
  # SDK version the branch is based on and PLATFORM_VERSION_CODENAME holds
  # the code-name of the new development work.
  PLATFORM_SDK_VERSION := 7
endif

ifeq "" "$(PLATFORM_VERSION_CODENAME)"
  # This is the current development code-name, if the build is not a final
  # release build.  If this is a final release build, it is simply "REL".
  PLATFORM_VERSION_CODENAME := 7
endif

ifeq "" "$(DEFAULT_APP_TARGET_SDK)"
  # This is the default minSdkVersion and targetSdkVersion to use for
  # all .apks created by the build system.  It can be overridden by explicitly
  # setting these in the .apk's AndroidManifest.xml.  It is either the code
  # name of the development build or, if this is a release build, the official
  # SDK version of this release.
  ifeq "REL" "$(PLATFORM_VERSION_CODENAME)"
    DEFAULT_APP_TARGET_SDK := 7
  else
    DEFAULT_APP_TARGET_SDK := 7
  endif
endif

ifeq "" "$(BUILD_ID)"
  # Used to signify special builds.  E.g., branches and/or releases,
  # like "M5-RC7".  Can be an arbitrary string, but must be a single
  # word and a valid file name.
  #
  # If there is no BUILD_ID set, make it obvious.
  BUILD_ID := UNKNOWN
endif

ifeq "" "$(BUILD_NUMBER)"
  # BUILD_NUMBER should be set to the source control value that
  # represents the current state of the source code.  E.g., a
  # perforce changelist number or a git hash.  Can be an arbitrary string
  # (to allow for source control that uses something other than numbers),
  # but must be a single word and a valid file name.
  #
  # If no BUILD_NUMBER is set, create a useful "I am an engineering build
  # from this date/time" value.  Make it start with a non-digit so that
  # anyone trying to parse it as an integer will probably get "0".
  BUILD_NUMBER := eng.$(USER).$(shell date +%Y%m%d.%H%M%S)
endif
 
分享到:
评论

相关推荐

    安卓studio的INSTALL_FAILED_OLDER_SDK的解决方法

    The application could not be installed: INSTALL_FAILED_OLDER_SDK The application’s minSdkVersion is newer than the device API level. 意思是我使用的设备的sdk版本低于要求的sdk版本 解决方法: 找到项目...

    install_guide_ja_JP_older2x7_java编程_

    【标题】"install_guide_ja_JP_older2x7_java编程_" 指的是一个针对旧版本2.x和7.x的Java编程的安装指南,特别适用于日本用户(ja_JP表示日语)。这个指南可能详细阐述了如何在不同的操作系统上安装Java开发环境,...

    无线网络测试APP操作步骤

    为了使各位装维兄弟对无线网络部提供的测试APP有 更好的理解,特将各APP测试的详细步骤列出,以供参考: 注意事项:由于无线网络环境随时都在变化,填写各个数值时需在测试软件显示相对问题的情况下填写。...

    Windows环境下的常用ADB命令大全

    - `INSTALL_FAILED_OLDER_SDK`:设备系统版本低于应用要求。 - 解决办法:更新设备操作系统至更高版本。 - `INSTALL_FAILED_CONFLICTING_PROVIDER`:设备里已经存在与应用里同名的Content Provider。 - 解决办法...

    ApkIDE3.3.0.0作者原版,解决常见apk打包安装问题.rar

    adb: failed to install SystemActivities.apk: Failure [INSTALL_FAILED_OLDER_SDK: Failed parse during installPackageLI: /data/app/vmdl1716187195.tmp/base.apk (at Binary XML file line #0): Requires newer...

    adb1.0.26包含fastboot.exe

    INSTALL_FAILED_OLDER_SDK 设备系统版本低于应用要求 INSTALL_FAILED_CONFLICTING_PROVIDER 设备里已经存在与应用里同名的 content provider INSTALL_FAILED_NEWER_SDK 设备系统版本高于应用要求 INSTALL_FAILED_...

    android_sdk_linux_m3-rc20a.zip

    android_sdk_linux_m3-rc20a.zip -> Linux (i386) -> md5sum : 2660b4029039b7d714e59827e9a9a11d -> https://developer.android.com/sdk/older_releases

    opengl_nehe_SDK

    Note: Some older cards, such as Voodoos and the early ATIs do not have drivers which appear to be completely compatible. Use these at your own risk. Any card problems reported are in bugs.txt ...

    dft.zip_K._older9gv_tales8fy_傅里叶变换

    在标题"**dft.zip_K._older9gv_tales8fy_傅里叶变换**"中,"dft.zip"指的是包含关于离散傅里叶变换资源的压缩文件,而"K. older9gv"和"tales8fy"可能是作者或项目的标识符。这个压缩包很可能是为了教学或研究目的,...

    android-sdk- windows-1 .0_r1.zip

    https://developer.android.com/sdk/older_releases android-sdk- windows-1 .0_r1.zip md5sum : d69f4ee93d4010f726c04302662fd999

    Candence学习

    set ADS_PATH=$GLOBALPATH # Present for compatibility with older versions of Allegro. if nvar ALLEGRO_SITE "set ALLEGRO_SITE ." #-------------------------------------------- # Configuration variables ...

    佳能单反相机开发包(Canon digital camera SDK)3.9.0版本Canon EOS ED-SDK3.9.0

    佳能单反相机开发包(Canon digital camera SDK)3.9.0版本Canon EOS ED-SDK3.9.0。 09/25/2018 -Added support for the EOS R -Deleted the description of the older model out of support and deleted the ...

    Android代码-dropbox-sdk-java

    A Java library to access Dropbox's HTTP-based Core API v2. This SDK also supports the older Core API v1, but that support will be removed at some point. License: MIT Documentation: Javadocs Setup If ...

    mysql 5.5 安装配置简单教程

    下面的是MySQL安装的过程,用的可执行文件安装的,详细说明了一下! 1.打开下载的mysql安装文件mysql-5.0.27-win32.zip,双击解压缩,运行“setup.exe“ 2.mysql安装向导启动,按“Next”继续 选择安装类型,有...

    Myeclipse的egit插件

    org.eclipse.egit.repository-2.3.1.201302201838-r ,org.eclipse.egit.repository-4.0.1.201506240215-r, ...git插件官网地址:http://wiki.eclipse.org/EGit/FAQ#Where_can_I_find_older_releases_of_EGit.3F

    RealThinClientSDK_v610_BETA

    2.) Install RTC SDK components in Delphi 3.) Make the RTC SDK accessible from XCode (for iOS development) 4.) Update RTC SDK components in Delphi 5.) Help 6.) Demos 7.) Support *****************...

    Older_demo1.zip_c# 养老院_养老院_无边框_登录界面设计

    【标题】"Older_demo1.zip_c# 养老院_养老院_无边框_登录界面设计" 涉及的是一个基于C#语言开发的养老院管理系统的早期版本,该系统具有独特的无边框登录界面设计,强调用户交互体验的优化。 在C#编程语言中,...

    DriverStudio 3.2 For VisualStudio 2005 补丁

    Select "yes" if prompted to copy over an existing one. <br>· Then unregister the older version. Go to start->run and type "regsvr32 -u "<INSTALL_DIR>\DriverStudio\Common\Bin\dsddkenv8.dll" <br...

    VST SDK 3.612

    VST SDK 3.6.12 •The VST 3 API •VST 3 Implementation Helper Classes •AAX, AU and VST 2 wrappers •VST 3 Plug-ins Examples About VST 3 VST 3 is a general rework of the long-serving VST Plug-in ...

    clean-up-gh-packages:GitHub动作,清理发布到GitHub Packages的Maven软件包的旧版本

    必需的OLDER_THAN_NUMBER_OF_DAYS 早于OLDER_THAN_NUMBER_OF_DAYS的软件包将被删除。 必需的TOKEN 具有删除权限的身份验证令牌。 必需的用法示例- name : Clean up packages uses : gps/clean-up-gh-packages@...

Global site tag (gtag.js) - Google Analytics