Android Studio 导入项目时出现Failed to apply plugin
Android Studio导入项目时出现问题
Caused by: org.gradle.api.internal.plugins.PluginApplicationException: Failed to apply plugin [id ‘com.android.internal.application’]
解决方法
在Gradle Scripts的gradle.properties中添加以下语句
android.overridePathCheck=true
(发文助手不通过于是加上了我的全部文件内容,忽略就好)
# 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=-Xmx2048m -Dfile.encoding=UTF-8
# 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=true
# AndroidX package structure to make it clearer which packages are bundled with the
# Android operating system, and which are packaged with your app"s APK
# https://developer.android.com/topic/libraries/support-library/androidx-rn
android.useAndroidX=true
# Enables namespacing of each library's R class so that its R class includes only the
# resources declared in the library itself and none from the library's dependencies,
# thereby reducing the size of the R class for that library
android.nonTransitiveRClass=true
android.overridePathCheck=true
然后重新启动
启动成功!
Android Studio 导入项目时出现Failed to apply plugin相关推荐
- Android Studio导入项目时出现,弹框说SDK有问题
在导入项目时出现如下问题的错误弹框: studioThe path 'E:\Android\AndroidSDK' does not belong to a directory. Android ...
- Android Studio导入项目app module一直不显示
Android Studio导入项目app module一直不显示 问题描述及尝试解决 Android Studio版本:3.5.2 导入或打开已有Android项目时Gradle插件版本和Gradl ...
- Android Studio导入项目非常慢的解决办法
问题 Android Studio目前已经更新到2.0 Preview 6了,作为Google大力推崇的开发工具,相对于Eclipse ADT有着不可比拟的优势.然而在实际使用时,依然有不少不爽的地方 ...
- Android Studio导入项目提示“Unrecognized Android Studio”
问题: Android Studio在导入或者打开一个项目时,提示以下错误: Unrecognized Android Studio (or Android Support plugin for In ...
- Android studio导入项目提示The same input jar [*.jar] is specified twice
1 问题 把项目导入Android studio提示用gradle编译提示下面错误 The same input jar [*.jar] is specified twice 2 原因 gradl ...
- android项目创建好慢,解决 Android Studio 创建项目时极其的慢的尴尬
Android Studio 创建新项目的时候,会在进度条的界面滞留很久. 有时候一天都卡在这. 打开其它项目有些时候,也会出现这种情况. 创建工程 原因 在创建新项目的时候导致进度条一直转个不停的主 ...
- Android studio 导入项目详解 (简单快速)
最近开课移动互联网应用开发,实验课老师发了代码让我们导入,在网上找了各种方法,发现不是每一个项目都适合,有些能够成功,有些还是有错,头大的很.后面发现一个比较简单的方法,没翻过车,新手可以试试O(∩_ ...
- android studio 工程管理,Android Studio 导入项目并上传管理
这是导入他人安卓项目时的两个关键配置文件(如果不进行修改的话,有时会因为版本问题和配置上的差异导致无法正常运行) 我们可以手动创建一个空的 HelloWorld 的项目,然后对这两个文件进行修改 这里 ...
- Android Studio导入项目app 不显示
导入别人的项目,报错Unrecognized Android Studio (or Android Support plugin for IntelliJ IDEA) version '201.874 ...
最新文章
- java迭代器创建后mutx锁,java集合【5】—— Collections接口源码解析
- Thinkpad T420 指纹开机 win10 解决方案
- MySoft.Data入门篇:实体生成
- 设计模式(二)————观察者模式
- 北京关于领取2021年上半年合格证书的通知
- package.json
- 《Delphi XE6 android 编程入门教程》推荐
- 任意点 曲线距离_中级数学11-曲线函数
- .NET APlayer播放器 demo
- php 微信分享链接怎么弄,PHP实现 微信--分享朋友链接
- 三星Galaxy Note10系列国内发布会官宣:8月21日见!
- mysql约束条件整型_MySQL 表的操作
- 例解 autoconf 和 automake 生成 Makefile 文件[转+个人修改]
- ​Linux进程管理工具
- 1-1 Go抽奖系统导学
- 缓存踩踏:Facebook史上最严重的宕机事件分析
- QT6.1.2下载和安装教程
- jQuery + JavaScript 实现的动态添加文本框功能 和 动态删除文本框功能(二)
- Spring IOC学习
- win10更新后开不了机_win10开机关机正常,重启特别慢问题排查
热门文章
- 安卓AndroidStudio-drawable-mdpi、hdpi、xhdpi、xxhdpi等不同分辨率图片生成器AndroidDrawableFactory
- 微信小程序 高分作文精选 50万数据
- 【Python入门】Turtle海龟库:利用海龟画笔绘制每条边颜色不同的正方形
- 适合学生的蓝牙耳机,平价好用蓝牙耳机推荐
- VSCode终端字体设置
- 2017年泰国国际珠宝首饰展会刊(参展商名录)
- 上传头像裁剪vue3(vue-cropper)配合element的upload
- 基于Web Socket的远程控制
- RESTful风格的接口
- oracle10g导入的dmp文件,Oracle10g导入DMP