Android Studio 3.0 Error, How Can I Get Rid Of It?
Solution 1:
As per the new gradle dependency instruction the compile has been deprecated so for libraries use api and use the latest stable lib version as 2.1.0
and since the version is a stable release so
api 'com.google.android.support:wearable:2.1.0'or it's better to use
implementation 'com.google.android.support:wearable:2.1.0'implementation
if an implementation dependency changes its API, Gradle recompiles only that dependency and the modules that directly depend on it. Most app and test modules should use this configuration.
api
When a module includes an api dependency, it's letting Gradle know that the module wants to transitively export that dependency to other modules, so that it's available to them at both runtime and compile time.
This configuration behaves just like compile (which is nowdeprecated), and you should typically use this only in librarymodules. That's because, if an api dependency changes its externalAPI, Gradle recompiles all modules that have access to that dependencyat compile time
Post a Comment for "Android Studio 3.0 Error, How Can I Get Rid Of It?"