minSdk> deviceSdk的问题

    xiaoxiao2021-03-25  110

    见Stack Overflowhttp://stackoverflow.com/questions/41815932/minsdkapi25-devicesdkapi24-error-using-android-studio-2-2-3-and-windows-64

    答案如下

    The application you try to debug has minSdkVersion 25 and your phone SDK is 24, I don't think that you need minSdkVersion 25 for your app go to app/build.gradle file and minimize the min SDK or if it's important to let your app with this SDK use higher phone

    摘抄:http://blog.csdn.net/shenshizhong/article/details/52584281

    运行一个开源的项目出现“minSdk(API 21) > deviceSdk(API 17)”的提示,因为我用的是手机是sdk(API17)的,而项目要求是最低版本是minSdk(API 21),在我的测试机上面是不能运行的

    解决:

    一、也就是最低版本是sdk17及以下,点开了build.gradle,将里面的minSdk改成17或者小于17即可。

    注意点:

    如果项目中用到了API 21及以上的东西,那么在运行的时候还是会报错的,提示你找不到资源,你只有这台测试机,你可以将使用到的地方做注释,也就是忽略使用api21那部分内容,项目就可以运行了,但如果你要看到完整项目效果,那么你只能找个其他手机,下面的方法。

     

    二、那只能找一个API 21及以上的手机了,这个主要是项目中使用android5.0及以上特性。

    只用用android5.0及以上的手机,你才能看到效果。

    转载请注明原文地址: https://ju.6miu.com/read-32170.html

    最新回复(0)