Error:(1, 0) Plugin with id 'com.android.application' not found
1.遇到這錯誤:根本原因就是 再 工程目錄下 的 build.gradle中沒有新增(或沒有找到)依賴包(application 包)
解決辦法:方法1 。在專案(外層、根)目錄的 build.gradle中新增 如下程式碼
buildscript {
repositories {
jcenter()}
dependencies {
classpath 'com.android.tools.build:gradle:0.12.+'// NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files}}
方法2:如何匯入的專案中是否有
build.gradle檔案。是否是匯入專案時選錯了目錄。
個人產生這個錯誤的原因是:
在svn重新匯入程式碼的時候,沒有選擇根目錄同步,而是在
app:目錄下同步的 導致並沒有整個專案的 build.gradle檔案。即我是因為第二種情況才導致這個錯誤。
相關推薦
Error:(1, 0) Plugin with id 'com.android.application' not found
1.遇到這錯誤:根本原因就是 再 工程目錄下 的 build.gradle中沒有新增(或沒有找到)依賴包(application 包) 解決辦法:方法1 。在專案(外層、根)目錄的 build.gradle中新增 如下程式碼 buildscript { repos
Plugin with id 'com.android.application' not found.報錯
從github或第三方Demo中獲取的專案匯入到AndroidStudio中報錯Plugin with id 'com.android.application' not found.;今天匯入一個訊飛的Demo看專案的目錄明顯不對,感覺少了個build.gradle;只有Mo
匯入專案時遇到的plugin with id com.android.application not found問題解決方案
出現這個問題主要是因為缺少build.gradle檔案導致的。因為一般專案會有兩個build.gradle檔案。其作用如下: build.gradle(Project: xxxx) 該檔案是整個工程編譯的全域性檔案,優先順序最高 原始碼如下: // Top-lev
Plugin with id 'com.jfrog.bintray' not found. Plugin with id 'com.github.dcendents.android-maven' n
解決: Plugin with id 'com.jfrog.bintray' not found. Plugin with id 'com.github.dcendents.android-maven' not foundhttp://blog.csdn.net/qq_
Android studio 導入項目錯誤Plugin with id‘com.XXXX
repos enc mage 圖片 gin build spa include ppc 1.打開AS ,展開項目列表打開方框中的build.gradle。2.添加 buildscript { repositories { mavenCentral(
failed to apply plugin [id 'com.android.application']
當在SD匯入別人的專案的時候報錯,解決的辦法如下: 在build.gradle檔案中,在 apply plugin: 'com.android.application' 這一行上面,新增一下語句: buildscript { repositories {
Gradle sync failed: Plugin with id 'com.novoda.bintray-release' not found
從github上下載moudle作為工程的一個library匯入時出現該錯誤 解決方法:在工程的 build.gradle中新增: dependencies { classpath
解決Android studio中Plugin with id 'realm-android' not found
問題 Plugin with id ‘realm-android’ not found 解決方案 安裝 Realm 作為 Gradle plugin. 第一步: 把 class path dependency 加入到 project 裡面的 build
Plugin with id 'com.android.application' not found. Open File
Plugin with id ‘com.android.application’ not found. Open File 解決方法: 將下面的配置拷貝到build.gradle裡面 buildscript { repositories { jcenter()
匯入第三方庫報“Plugin with id 'com.github.dcendents.android-maven' not found”錯誤
如果在匯入第三方庫出現上述錯誤是,需要在專案的build.gradle(project)檔案中新增如下程式碼: classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7' classpath 'com.github.dcende
AS匯入專案報錯:Plugin with id 'com.android.application' not found.
從github或第三方Demo中獲取的專案匯入到AndroidStudio中報錯Plugin with id 'com.android.application' not found.;今天匯入一個訊飛的Demo看專案的目錄明顯不對,感覺少了個build.gradle;只有Module的build.g
關於Plugin with id 'com.github.dcendents.android-maven' not found.問題解決
今天引入一個moudle做依賴庫,遇到了Plugin with id ‘com.github.dcendents.android-maven’ not found.這個錯誤,搞的我一臉懵逼,字面意思就是某個外掛沒找到, 那就很方便咯,沒找到外掛就引入外掛嘛,找到專案下全域性的根目錄build
Plugin with id 'com.novoda.bintray-release' not found.的解決方案
添加 pan mage nbsp file eas 分享 pat img import Module的時候,有時候會提示Plugin with id ‘com.novoda.bintray-release‘ not found. 點擊Open File,定位到該Mod
Plugin with id 'com.novoda.bintray-release' not found的解決方法
comment and pre 目錄 解決方法 roi -s path ase 我們一般在在github上下載下來的代碼,有時候會提示Plugin with id ‘com.novoda.bintray-release’ not found的錯誤,這
[Android] Plugin with id ‘android-library’ not found
從網路上下載了一個範例,開啟時會顯示這個錯誤: Plugin with id ‘com.android.application’ not found. 解法: Add the following code to the top of your build.gradle: buildscript {
打包錯誤Error converting bytecode to dex: Cause: com.android.dex.DexException: Multiple dex files define
昨天準備釋出一個版本,算好了時間,在解決完其他問題後預留兩個小時來上傳。在打包時遇見了問題,害的我加班三個小時。現記錄下問題,並整理下解決問題的思路。 打包出現問題時的截圖 圖片可能看不太清楚,錯誤如下: Error:Error converting bytecode to
Android Studio 2.3.3 出現Error:(26.13) Fail to resole: com.android.support.appcompat永久解決方法...
Android Studio 出現Error(26.13):Fail to resole:com.android.support.appcompat-v7.28_ Install Repository sync project show in file Show in project structure di
AndroidStudio新建專案報錯Conflict with dependency 'com.android.support:support-annotations'in project 解決方案
錯誤提示如下: Error:Execution failed for task ‘:app:preDebugAndroidTestBuild’. Conflict with dependenc
整合butterknife出現 Error:Unable to find method 'com.android.build.gradle.api.BaseVariant.getOutputs()
錯誤為: Error:Unable to find method 'com.android.build.gradle.api.BaseVariant.getOutputs()Ljava/util/List;'. Possible causes for this unexpected erro
Conflict with dependency "com.android.support-annotations' in project':app'.Resolved ...解決方法
今天新建一個專案的時候在構建過程中出現如下的問題: 這個錯誤的大概意思是:我的名為app的module裡,com.android.support:support-annotations這個依賴衝突了,app裡的版本是26.1.0,但是Test app的版本里是27.1.