The app.Configuration 'compile' is obsolete and has been replaced with 'implementation'
AndroidStudio升級後compile 要變成implementation
錯誤提示
For an Android project, the new configurations came with the Android Gradle Plugin 3.0. So unless you are still using the 2.x version of Android Studio / Android Gradle plugin, the use of compile is deprecated. So you should use implementation, even for an app.
Configuration 'compile' is obsolete and has been replaced with 'implementation'.
It will be removed at the end of 2018
Configuration 'debugCompile' is obsolete and has been replaced with 'debugImplementation'.
It will be removed at the end of 2018
Configuration 'releaseCompile' is obsolete and has been replaced with 'releaseImplementation'.
It will be removed at the end of 2018
解決方法
compile—>implementation
debugCompile—>debugImplementation
releaseCompile—>releaseImplementation
。。。
compile:
可以傳遞依賴引用,編譯時間相對來說長久一些
implementation:
不可傳遞依賴引用,比如,B依賴A,C再依賴B,C卻不能依賴A的引用或者依賴。當然他的編譯時間就會短一些。
對於api代替compile,他們功能相同。
相關文章
- RuntimeError: An attempt has been made to start a new process before the current process hasError
- Uncaught SyntaxError: Identifier 'Geometry' has already been declaredErrorIDE
- Android中gradle檔案中implementation和compile的異同AndroidGradleCompile
- Thread 1: Fatal error: init(coder:) has not been implementedthreadError
- 【HMS Core】ToolKit,Merchant Service has not been enabled yet
- Transaction rolled back because it has been marked as rollback-only
- FeignClientSpecification‘ could not be registered. A bean with that name has already been definedclientBean
- Caused by: java.lang.IllegalStateException: getWriter() has already been called for this responseJavaException
- has been blocked by CORS policy跨域問題解決BloCCORS跨域
- springcloudconfig訪問gitee報錯:Authentication is required but no CredentialsProvider has been registeredSpringGCCloudGiteeUIIDE
- [原創] How to pull code when shared repo commit history has been changedMIT
- Syntax Error: ValidationError: Invalid options object. Stylus Loader has been initialized using anErrorObjectZed
- How To Retry Multiple Errored Approval Workflow Processes After A Fix Or Patch Has Been ImplementedErrorAPP
- PHP Warning: exec() has been disabled for security 問題解決辦法PHP
- java.lang.IllegalStateException: Cannot call sendError() after the response has been committed解讀JavaExceptionErrorMIT
- BUG記錄-Sharing is only supported for boot loader classes because bootstrap classpath has been appendebootAPP
- Error: php@8.0 has been disabled because it is a versioned formula! It was disabled on 2023-11-29.ErrorPHPORM
- prettier Unexpected closing tag "p". It may happen when the tag has already been closed by another tag.APP
- PyTorch出現:RuntimeError: An attempt has been made to start a new process...報錯 (已解決)PyTorchError
- Android gradle問題解決: This app has been built with an incorrect configuration. Please configure your b...AndroidGradleAPPUI
- LF will be replaced by CRLF
- react-解決 fetch 跨域問題:Access to fetch at XXX from origin YYY has been blocked by CORS policyReact跨域BloCCORS
- vue專案啟動報錯(SyntaxError: Identifier ‘__vite__injectQuery’ has already been declared (at ${mod.id}:55030:1))VueErrorIDEVite
- 【譯】TCP Implementation in LinuxTCPLinux
- SAP KANBAN and Implementation ConsiderationsIDE
- This request has been blocked; the content must be served over HTTPS.此請求已被阻止;內容必須透過HTTPS提供BloCHTTP
- The Design and Implementation of Hyperupcalls 翻譯PCA
- 深入前端之replaced element前端
- How to compile libusb as shared/static libraryCompile
- Android Gradle 依賴配置:implementation & apiAndroidGradleAPI
- 解決Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile(default-compile)AIGoApacheMavenPluginCompile
- react元件內報implementation()方法錯誤!React元件
- SAP Commerce的路由實現(Route Implementation)路由
- Tensorflow2的Keras介面:compile、fitKerasCompile
- [CSS 3] :has()CSS
- fatal: LF would be replaced by CRLF 問題解決
- [git]warning: LF will be replaced by CRLF in 解決辦法Git
- Git錯誤fatal: CRLF would be replaced by LF in xxxGit