Android BlueStacks 安装失败较旧的 sdk 错误

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/25111088/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-20 09:06:19  来源:igfitidea点击:

BlueStacks Installation failed older sdk error

androidandroid-xmlbluestacks

提问by Raul Puri

Hi everyone I'm trying to install an apk that I've designed with minsdk version of 14 and target of 19 onto bluestacks and its failing. What's weird is that I installed an app with the same api version of 14/19 on this very same bluestacks player a month ago(I deleted it now though to swap it with the new apk). Please let me know what api I should be developing in for bluestacks. Here's my xml

大家好,我正在尝试安装一个我设计的 apk,它的 minsdk 版本为 14,目标为 19 到 bluestacks 并且它失败了。奇怪的是,一个月前我在同一个 bluestacks 播放器上安装了一个具有相同 14/19 api 版本的应用程序(我现在删除了它,但用新的 apk 交换了它)。请让我知道我应该为 bluestacks 开发什么 api。这是我的 xml

<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.demoww"
android:versionCode="1"
android:versionName="1.0" >

<uses-sdk
    android:minSdkVersion="14"
    android:targetSdkVersion="14" />

<application
    android:allowBackup="true"
    android:icon="@drawable/earth"
    android:theme="@style/AppTheme" >
    <activity
        android:name=".LoadScreen"
        android:label="@string/Linking_players" >
        <intent-filter>
            <action android:name="android.intent.action.MAIN" />

            <category android:name="android.intent.category.LAUNCHER" />
        </intent-filter>
    </activity>
    <activity
        android:name=".SignUp"
        android:label="@string/Signup" >
    </activity>
    <activity android:name=".MainActivity" >
        <meta-data
            android:name="android.support.UI_OPTIONS"
            android:value="splitActionBarWhenNarrow" />
    </activity>
    <activity android:name=".suggestedfriends" >
        <meta-data
            android:name="android.support.UI_OPTIONS"
            android:value="splitActionBarWhenNarrow" />
    </activity>
    <activity android:name=".search" >
        <meta-data
            android:name="android.support.UI_OPTIONS"
            android:value="splitActionBarWhenNarrow" />
    </activity>
    <activity android:name=".requests" >
        <meta-data
            android:name="android.support.UI_OPTIONS"
            android:value="splitActionBarWhenNarrow" />
    </activity>
    <activity android:name=".raul_profile" >
        <meta-data
            android:name="android.support.UI_OPTIONS"
            android:value="splitActionBarWhenNarrow" />
    </activity>
    <activity android:name=".raul_message" >
        <meta-data
            android:name="android.support.UI_OPTIONS"
            android:value="splitActionBarWhenNarrow" />
    </activity>
    <activity android:name=".profile" >
        <meta-data
            android:name="android.support.UI_OPTIONS"
            android:value="splitActionBarWhenNarrow" />
    </activity>
    <activity android:name=".messages" >
        <meta-data
            android:name="android.support.UI_OPTIONS"
            android:value="splitActionBarWhenNarrow" />
    </activity>
    <activity android:name=".friendslist" >
        <meta-data
            android:name="android.support.UI_OPTIONS"
            android:value="splitActionBarWhenNarrow" />
    </activity>

</application>
<!-- To access Google+ APIs: -->
<uses-permission android:name="android.permission.INTERNET" />

<!--
 To retrieve OAuth 2.0 tokens or invalidate tokens to disconnect a user. This disconnect
 option is required to comply with the Google+ Sign-In developer policies







-->
<uses-permission android:name="android.permission.USE_CREDENTIALS" />

<!-- To retrieve the account name (email) as part of sign-in: -->
<uses-permission android:name="android.permission.GET_ACCOUNTS" />

<!-- To auto-complete the email text field in the login form with the user's emails -->
<uses-permission android:name="android.permission.READ_PROFILE" />
<uses-permission android:name="android.permission.READ_CONTACTS" />

</manifest>

采纳答案by Steph

If your BlueStacks is installed on a Windows PC, you can check its version by hovering over its taskbar icon.

如果您的 BlueStacks 安装在 Windows PC 上,您可以通过将鼠标悬停在其任务栏图标上来检查其版本。

enter image description here

在此处输入图片说明

回答by Janin zah

You can check which version of Android your version of BlueStacks is designed for by looking at the table below:

您可以通过查看下表来检查您的 BlueStacks 版本是为哪个 Android 版本设计的:

http://forum.xda-developers.com/wiki/BlueStacks_App_Player

http://forum.xda-developers.com/wiki/BlueStacks_App_Player

The Android version of my BlueStacks is 4.0.4. The API level is 15.

我的 BlueStacks 的 Android 版本是 4.0.4。API 级别为 15。

According to the table, the latest version (beta) conforms to 4.4.2 (KitKat).

根据表格,最新版本(测试版)符合 4.4.2 (KitKat)。

Unless, you have that version, you have to lower the API level for your apk to 15 or even lower.

除非你有那个版本,否则你必须将你的 apk 的 API 级别降低到 15 甚至更低。

If your BlueStacks is installed on a PC, you can check its version by:

如果您的 BlueStacks 安装在 PC 上,您可以通过以下方式检查其版本:

Start-> type "regedit"

开始->输入“regedit”

In registry editor, go to "HKEY_LOCAL_MACHINE" , "SOFTWARE", "BlueStacks" and it should be there under "Version".

在注册表编辑器中,转到“HKEY_LOCAL_MACHINE”、“SOFTWARE”、“BlueStacks”,它应该在“版本”下。

[These instructions to find the version number of an installed BlueStacks were originally posted by intheGame.]

[这些查找已安装 BlueStacks 版本号的说明最初由 intheGame 发布。]