Error:(72) error: unknown element <user-permission> found.

来源:互联网 发布:模拟现场灯光软件 编辑:程序博客网 时间:2024/06/15 18:20

android studio升级之后会出现这样一个问题,Error:(72) error: unknown element <user-permission> found.

解决方法是在项目的gradle.properties文件中添加

android.enableAapt2=false
如果项目下没有gradle.properties文件可以新建个
# Project-wide Gradle settings.# IDE (e.g. Android Studio) users:# Gradle settings configured through the IDE *will override*# any settings specified in this file.# For more details on how to configure your build environment visit# http://www.gradle.org/docs/current/userguide/build_environment.html# Specifies the JVM arguments used for the daemon process.# The setting is particularly useful for tweaking memory settings.org.gradle.jvmargs=-Xmx1536m# When configured, Gradle will run in incubating parallel mode.# This option should only be used with decoupled projects. More details, visit# http://www.gradle.org/docs/current/userguide/multi_project_builds.html#sec:decoupled_projects# org.gradle.parallel=trueandroid.enableAapt2=false


阅读全文
1 0
原创粉丝点击