android studio 出现 failed to find target android- 错误解决的办法
2017-08-12 23:26
399 查看
在看《android群英传》时,从网上下载的示例代码在运行时出现了failed to find target android-21的问题,如下图所示。
原因是我的sdk用的是24,这个项目大概用的是21。解决方法:如下图所示,在AS中进入system settings—Android SDK 选中我需要的API Level 21下载API21后,项目就能启动了。这里顺便吐槽一下,书这么薄卖的这么贵,为什么没有读者交流群呢,这个问题不单单是我遇到,相信其他刚入门的人也会遇到。
原因是我的sdk用的是24,这个项目大概用的是21。解决方法:如下图所示,在AS中进入system settings—Android SDK 选中我需要的API Level 21下载API21后,项目就能启动了。这里顺便吐槽一下,书这么薄卖的这么贵,为什么没有读者交流群呢,这个问题不单单是我遇到,相信其他刚入门的人也会遇到。
相关文章推荐
- Android Studio 导入项目 出现安装Error:Cause: failed to find target with hash string 'android-23' 等错误
- Android Studio 导入项目 出现安装Error:Cause: failed to find target with hash string 'android-23' 等错误
- Android 启动模拟器是出现“Failed to allocate memory: 8”错误提示的原因及解决办法
- 导入android项目出现:出现Unable to resolve target 'android-8'错误及其他的一些解决办法
- Android Studio "Error:Failed to find: com.android.support:XXXX"错误解决办法
- Android 启动模拟器是出现“Failed to allocate memory: 8”错误提示的原因及解决办法
- Failed to find an AVD compatible with target 'Android 1.5'. Launch aborted.的解决办法(转载)
- Android 启动模拟器是出现“Failed to allocate memory: 8”错误提示的原因及解决办法
- Android下载sdk中出现如下错误时:Failed to rename directory...解决办法
- Android 启动模拟器是出现“Failed to allocate memory: 8”错误提示的原因及解决办法
- android中使用代码混淆出现Conversion to Dalvik format failed with error 1错误的解决办法
- Android 启动模拟器是出现“Failed to allocate memory: 8”错误提示的原因及解决办法
- Android 启动模拟器是出现“Failed to allocate memory: 8”错误提示的原因及解决办法
- 导入android项目出现:出现Unable to resolve target 'android-8'错误及其他的一些解决办法
- Android 启动模拟器是出现“Failed to allocate memory: 8”错误提示的原因及解决办法
- android中使用代码混淆出现Conversion to Dalvik format failed with error 1错误的解决办法
- Android 启动模拟器是出现“Failed to allocate memory: 8”错误提示的原因及解决办法
- Android 启动模拟器是出现“Failed to allocate memory: 8”错误提示的原因及解决办法
- 解决Android Studio打开他人包时出现Failed to find: com.android.support:appcompat-v7:21