&引用;“未找到Android SDK版本”;从Appcelerator Studio运行Genymotion Android emulator时出错
当我试图在Appcelerator Studio的Genymotion Android emulator中运行我的Alloy应用程序时,我得到错误“未找到Android SDK版本Android M(预览)”。据我所知,我已经安装了SDK版本 以下是我尝试运行它的方式: 以下是我得到的错误: 似乎我安装了正确的SDK: 更新#1 这是my tiapp.xml的&引用;“未找到Android SDK版本”;从Appcelerator Studio运行Genymotion Android emulator时出错,android,appcelerator,titanium-alloy,genymotion,Android,Appcelerator,Titanium Alloy,Genymotion,当我试图在Appcelerator Studio的Genymotion Android emulator中运行我的Alloy应用程序时,我得到错误“未找到Android SDK版本Android M(预览)”。据我所知,我已经安装了SDK版本 以下是我尝试运行它的方式: 以下是我得到的错误: 似乎我安装了正确的SDK: 更新#1 这是my tiapp.xml的元素: <android xmlns:android="http://schemas.android.com/apk/res/
元素:
<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>
21
尝试从工具文件夹安装生成工具,并从工具(预览频道)文件夹安装平台工具 在我看来,您似乎安装了API 22,但没有安装API 21。您需要21,因为targetSdkVersion
设置为21
请安装API 21,然后查看其说明。查看是否在sdk文件中安装了仿真器 你把什么叫做minSDK和targetSDK?@Vannen是Appcelerator Studio中的minSDK和targetSDK配置,还是Genymotion的配置?在tiapp.xml文件中,android清单部分应该有这样一个标记:
你需要检查我要说的内容。如果将targetSDK恢复到21,编译是否成功?我在最近的android后台播客中听说,如果您将targetSdk设置为22,编译将成功,但您还不能提交到play store。据我所知,测试Api22应用程序的唯一方法是在官方android emulator或安装了M preview的nexuses上。我的tiapp.xml文件缺少清单部分,但我添加了它,如问题更新中所示。跟以前没有变化。@Kevin Albrecht我的回答对你有帮助吗?