简体   繁体   中英

“Android SDK version not found” error when running Genymotion Android emulator from Appcelerator Studio

When I try to run my Alloy app in the Genymotion Android emulator from Appcelerator Studio, I get the error "Android SDK version Android M (Preview) not found". As far as I can tell, I have that SDK version installed.

Here is how I attempt to run it:

运行

Here is the error I get:

错误信息

It seems like I have the right SDK installed:

已安装的SDK

Update #1

This is the <android/> element of my tiapp.xml:

<android xmlns:android="http://schemas.android.com/apk/res/android">
    <tool-api-level>21</tool-api-level>
    <manifest>
        <uses-sdk android:minSdkVersion="10" android:targetSdkVersion="21"/>
        <!-- other manifest entries -->
    </manifest>
</android>

尝试从Tools(预览频道)文件夹中的Tools文件夹和平台工具安装构建工具。

To me it seems you have API 22 installed but not API 21. You need 21 since your targetSdkVersion is set to 21.

Please install API 21 and see what it says then.

查看模拟器是否安装在sdk文件中。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM