简书链接:ewtargetSDK22doesntsupportruntimepermissionsbuttheoldtarge
文章字数:22,阅读全文大约需要1分钟

1
2
3
4
com.android.builder.testing.api.DeviceException: com.android.ddmlib.InstallException: Failed to finalize session : -26: Package com.example.myapp new target SDK 22 doesn't support runtime permissions but the old target SDK 23 does.

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to ge

解决方法就是升级到targetSdkVersion 23