解決Android studio中Plugin with id 'realm-android' not found
問題
Plugin with id ‘realm-android’ not found
解決方案
安裝 Realm 作為 Gradle plugin.
第一步:
把 class path dependency 加入到 project 裡面的 build.gradle 檔案中。
buildscript {
repositories {
jcenter()
}
dependencies {
classpath "io.realm:realm-gradle-plugin:5.4.1"
}
}
專案裡面的 build.gradle 檔案如下圖所示:
第二步
把 realm-android plugin 加入到app層的 build.gradle 檔案中.
apply plugin: 'realm-android'
app層的build.gradle 檔案如下圖所示:
加入完後點擊rebuild project就可以了。
相關推薦
解決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問題解決方案
出現這個問題主要是因為缺少build.gradle檔案導致的。因為一般專案會有兩個build.gradle檔案。其作用如下: build.gradle(Project: xxxx) 該檔案是整個工程編譯的全域性檔案,優先順序最高 原始碼如下: // Top-lev
Plugin with id 'com.android.application' not found.報錯
從github或第三方Demo中獲取的專案匯入到AndroidStudio中報錯Plugin with id 'com.android.application' not found.;今天匯入一個訊飛的Demo看專案的目錄明顯不對,感覺少了個build.gradle;只有Mo
Error:(1, 0) Plugin with id 'com.android.application' not found
1.遇到這錯誤:根本原因就是 再 工程目錄下 的 build.gradle中沒有新增(或沒有找到)依賴包(application 包) 解決辦法:方法1 。在專案(外層、根)目錄的 build.gradle中新增 如下程式碼 buildscript { repos
新裝Android Studio中Gradle下載慢、Could not get resource 'https://jcenter.bintray.com/...'問題
Gradle是一個版本控制以及靈活構建app的應用,但Gradle的使用有很多坑: 比如Android Studio(以下簡稱AS)在構建第一個新工程的時候自動下載gradle速度很慢.. 或者Gradle在自動下載網路庫的時候經常Could not get resource 'https:
經驗總結-完整介紹Android Studio中Git的使用之Android Studio上傳專案至GitHub(三)
現在我們開始吧,說明一下,下面的內容中,都是Git部落格系列的,雖然專案名和和之前不同,但它們都是銜接關係,如果你沒有銜接好,請建立一個專案自行完成銜接。 一、首先再次確定你自己的專案建立了Git
IntelliJ IDEA 或Android Studio中提示:Project SDK is not defined
之前用Android Studio去開啟一個專案後,結果遇到提示: Project SDK is not defined 如圖: 【解決過程】 1.試著去點選Setup SDK,出現設定對話方塊: 然後就卡死了好一會。 然後就好了,就沒了這個提示了。 【總結】 好像是
Android studio 導入項目錯誤Plugin with id‘com.XXXX
repos enc mage 圖片 gin build spa include ppc 1.打開AS ,展開項目列表打開方框中的build.gradle。2.添加 buildscript { repositories { mavenCentral(
關於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的錯誤,這
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()
Android Studio中的package name和application ID
在Eclipse中只有package name的概念,沒有application ID。而在Android Studio 中把package name 拆分為了兩部分package name和application ID。 Android Studio 中的application ID和
匯入第三方庫報“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
Android Studio 中多個module引用同一個jar(或者衝突解決)解決方案
在Android開發過程中我們多多少少會引入module,不僅會提高專案的開發進度,而且專案管理起來相當方便。 但是同一個專案中引入多個module引入同一個jar或有衝突的jar時候在編譯的時候會出現錯誤,這些錯誤往往讓人抓狂。 在解決這些錯誤之前,讓我們先了解下關
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] 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 {
Android Studio中架包打包和依賴衝突解決
一、為什麼使用aar打包,而不是jar 隨著Android Studio的使用越來越廣泛,使用aar打包這種方式也越來越可行實際。 jar打包只打原始碼,像資原始檔不會打包,而aar恰恰是jar打包的補充完善,它會把程式碼和資源統統打包進一個檔案。 二
Android Studio中 安卓模擬器不能聯網的解決方案
方案一: 之前做測試的時候發現虛擬機器無法聯網(瀏覽器開啟 www.baidu.com, 顯示 403 forbidden); 解決方案:關閉已經開啟的虛擬機器,進入到 SDK 安裝目錄下,按住 shift + 滑鼠右鍵,選擇 “在此處開啟 powerShe