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,他們功能相同。
相關文章
- getOutputStream() has already been called
- JIRA startup failed, JIRA has been locked.AI
- InnoDB Plugin has been upgraded to version 1.0.8Plugin
- RuntimeError: An attempt has been made to start a new process before the current process hasError
- Uncaught SyntaxError: Identifier 'Geometry' has already been declaredErrorIDE
- An unexpected error has been detected by Java Runtime EnvironmentErrorJava
- 【HMS Core】ToolKit,Merchant Service has not been enabled yet
- Transaction rolled back because it has been marked as rollback-only
- Android中gradle檔案中implementation和compile的異同AndroidGradleCompile
- Thread 1: Fatal error: init(coder:) has not been implementedthreadError
- has been blocked by CORS policy跨域問題解決BloCCORS跨域
- java.lang.IllegalStateException: getOutputStream() has already been called for this responseJavaException
- ORA-04068: existing state of packages has been discardedPackage
- A significant part of sql server process memory has been paged outNifiSQLServer
- Caused by: java.lang.IllegalStateException: getWriter() has already been called for this responseJavaException
- Invalid configuration object webpack dev server has been initialisedObjectWebdevServer
- 怎麼會出現 Cannot forward after response has been committed???ForwardMIT
- 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: getOutputStream() has already been called for this response解決方案JavaException
- 資料庫安裝An unexpected error has been detected by HotSpot Virtual Machine資料庫ErrorHotSpotMac
- EBS R12 - The system has not been taken off maintenance mode completely.AINaN
- /dev/root filesystem full-unable to log into server-This thread has been closeddevServerthread
- java.lang.IllegalStateException: Cannot call sendError() after the response has been committed解讀JavaExceptionErrorMIT
- [原創] How to pull code when shared repo commit history has been changedMIT
- ORA-06550 ,has been detected in fnd_global.initialize[fnd_init_sql].SQL
- 這個問題如何解決?Cannot forward after response has been committedForwardMIT
- springcloudconfig訪問gitee報錯:Authentication is required but no CredentialsProvider has been registeredSpringGCCloudGiteeUIIDE
- Syntax Error: ValidationError: Invalid options object. Stylus Loader has been initialized using anErrorObjectZed
- FTPS“嚴重錯誤: gnutls_handshake: A TLS fatal alert has been received.”FTPTLS
- BUG記錄-Sharing is only supported for boot loader classes because bootstrap classpath has been appendebootAPP
- Your account has been locked out. Please contact the system administrator for further assistance.
- Spring宣告式事務報錯"Transaction rolled back because it has been marked as rollback-only"分析...Spring
- LF will be replaced by CRLF
- [git] warning: LF will be replaced by CRLF | fatal: CRLF would be replaced by LFGit
- PyTorch出現:RuntimeError: An attempt has been made to start a new process...報錯 (已解決)PyTorchError
- OracleConnection is obsoleteOracle
- TSM 5.4 ANR0110E An unexpected system date has been detected 問題的解決