如何解决ASEC_CREATE权限? [英] How to solve ASEC_CREATE permission?

查看:66
本文介绍了如何解决ASEC_CREATE权限?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我无法再在手机中部署我的项目.我不知道是因为我已经更新了Gradle还是更新了我的手机系统,或者两者都更新.

I can´t deploy my project in my cell phone anymore. I don´t know if it is because I have updated Gradle or update my cell phone system or both.

错误消息是这样的:

Error installing split apks: com.android.ddmlib.InstallException: Failed to finalize session : Unknown failure (Error: java.lang.SecurityException: Requires android.permission.ASEC_CREATE permission)
Error while Installing APKs

我在AndroidManifest.xml中授予了ASEC_CREATE权限,

I have given ASEC_CREATE permission in AndroidManifest.xml with

<uses-permission android:name="android.permission.ASEC_CREATE"/>

但这不能解决错误.

我已经阅读了几乎所有与此相关的链接,但没有运气.有什么想法可以帮助我解决这个问题吗?

I've read almost all the link about this but no luck. Any ideas to help me solve this?

推荐答案

当我升级Android Studio然后升级Gradle时,出现了这个问题.

This problem appeared to me when I upgraded Android Studio and then Gradle.

为解决该问题,我返回了Gradle的版本:

To solve the problem I returned the version of Gradle:

// Top-level build file where you can add configuration options common to all sub-projects / modules.

Buildscript {
     Repositories {
         Jcenter ()
     }
     Dependencies {
          classpath 'com.android.tools.build:gradle:2.x.x'
          ...
     }
}

这篇关于如何解决ASEC_CREATE权限?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆