crazycodeboy / react-native-splash-screen

A splash screen for react-native, hide when application loaded ,it works on iOS and Android.
MIT License
5.6k stars 1.09k forks source link

Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api' #311

Closed mnlbox closed 5 years ago

mnlbox commented 5 years ago

Hi @crazycodeboy I see this warning in new app:

> Configure project :react-native-splash-screen 
WARNING: Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'.
It will be removed at the end of 2018. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html
WARNING: Configuration 'testCompile' is obsolete and has been replaced with 'testImplementation' and 'testApi'.
It will be removed at the end of 2018. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html
WARNING: Configuration 'testApi' is obsolete and has been replaced with 'testImplementation'.
It will be removed at the end of 2018. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html
WARNING: The specified Android SDK Build Tools version (26.0.3) is ignored, as it is below the minimum supported version (27.0.3) for Android Gradle Plugin 3.1.4.
Android SDK Build Tools 27.0.3 will be used.
To suppress this warning, remove "buildToolsVersion '26.0.3'" from your build.gradle file, as each version of the Android Gradle Plugin now has a default version of the build tools.

I think it's related to gradle version and we need some update to fix this.

Shhzdmrz commented 5 years ago

+1

hasanraz commented 5 years ago

How to Avoid this issue

rajnishcoder commented 5 years ago

any update ?

ozalexo commented 5 years ago

How to Avoid this issue

Please find my workaround here: https://github.com/ozalexo/ChronoMint-RN/blob/209e5e9a23ef6e6a237df6cd4c42658d8b3d6f71/docs/PATCHPACKAGE.md

amnan181 commented 5 years ago

hi i can remove this error.... Sorry for poor english...! change all bundle.gradle files goto your project and then node_modules then goto where module you installed ex.react-native-splash-screen.Find and open build.gradle ----->> buildToolsVersion : "27.0.3" and next find dependencies change where write compile and then change compile to "implementation". if you are face any problem then you paste your comment.

CONSJOBS commented 5 years ago

There is no compile, all are implementation, what is this error?

AftabUfaq commented 4 years ago

i have warning in the react-native-fetch-blob library ...... Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'. It will be removed at the end of 2018. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html WARNING: Configuration 'testCompile' is obsolete and has been replaced with 'testImplementation' and 'testApi'. It will be removed at the end of 2018. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html WARNING: Configuration 'testApi' is obsolete and has been replaced with 'testImplementation'. It will be removed at the end of 2018. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html WARNING: The specified Android SDK Build Tools version (26.0.3) is ignored, as it is below the minimum supported version (27.0.3) for Android Gradle Plugin 3.1.4. Android SDK Build Tools 27.0.3 will be used. To suppress this warning, remove "buildToolsVersion '26.0.3'" from your build.gradle file, as each version of the Android Gradle Plugin now has a default version of the build tools.

Parthshiroya06 commented 2 years ago

project :react-native-toast WARNING:: Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'. It will be removed in version 7.0 of the Android Gradle plugin. For more information, see http://d.android.com/r/tools/update-dependency-configurations.html. WARNING:: The specified Android SDK Build Tools version (23.0.1) is ignored, as it is below the minimum supported version (30.0.2) for Android Gradle Plugin 4.2.2. Android SDK Build Tools 30.0.2 will be used. To suppress this warning, remove "buildToolsVersion '23.0.1'" from your build.gradle file, as each version of the Android Gradle Plugin now has a default version of the build tools. WARNING:: The specified Android SDK Build Tools version (23.0.1) is ignored, as it is below the minimum supported version (30.0.2) for Android Gradle Plugin 4.2.2. Android SDK Build Tools 30.0.2 will be used. To suppress this warning, remove "buildToolsVersion '23.0.1'" from your build.gradle file, as each version of the Android Gradle Plugin now has a default version of the build tools. File C:\Users\Parth Shiroya.android\repositories.cfg could not be loaded. Checking the license for package Android SDK Platform 23 in C:\Users\ParthShiroya\Android\Sdk\licenses License for package Android SDK Platform 23 accepted. Preparing "Install Android SDK Platform 23 (revision: 3)". Warning: Failed to read or create install properties file.

1-pro commented 2 years ago

I have been battling with same error

yarn run:android yarn run v1.22.17 warning ../../package.json: No license field $ react-native run-android info Running jetifier to migrate libraries to AndroidX. You can disable it using "--no-jetifier" flag. Jetifier found 1673 file(s) to forward-jetify. Using 4 workers... info Starting JS server...

Configure project :app WARNING: Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'. It will be removed at the end of 2018. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html Mapping new ns http://schemas.android.com/repository/android/common/02 to old ns http://schemas.android.com/repository/android/common/01 Mapping new ns http://schemas.android.com/repository/android/generic/02 to old ns http://schemas.android.com/repository/android/generic/01 Mapping new ns http://schemas.android.com/sdk/android/repo/addon2/02 to old ns http://schemas.android.com/sdk/android/repo/addon2/01 Mapping new ns http://schemas.android.com/sdk/android/repo/repository2/02 to old ns http://schemas.android.com/sdk/android/repo/repository2/01 Mapping new ns http://schemas.android.com/sdk/android/repo/sys-img2/02 to old ns http://schemas.android.com/sdk/android/repo/sys-img2/01

FAILURE: Build failed with an exception.

BUILD FAILED in 9m 24s

error Failed to install the app. Make sure you have the Android development environment set up: https://reactnative.dev/docs/environment-setup. Run CLI with --verbose flag for more details. Error: Command failed: ./gradlew app:installDebug -PreactNativeDevServerPort=8081

error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Please whats the solution?

aaryavrate commented 2 years ago

Why some "Genius" does this type of name change? sucks :(

sharjeel125 commented 2 years ago

Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'. It will be removed soon. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html Affected Modules: PDFView, app, react-native-pdf-view

sharjeel125 commented 2 years ago

Configuration 'compile' is obsolete and has been replaced with 'implementation' and 'api'. It will be removed soon. For more information see: http://d.android.com/r/tools/update-dependency-configurations.html Affected Modules: PDFView, app, react-native-pdf-view please help how to get rid of this ..... this throw error pdf view is affected and throws error not able to build how to fix this

Could not determine the dependencies of task ':PDFView:compileDebugRenderscript'.

Could not resolve all task dependencies for configuration ':PDFView:debugCompileClasspath'. Could not resolve com.facebook.react:react-native:0.20.+. Required by: project :PDFView Failed to list versions for com.facebook.react:react-native. Unable to load Maven meta-data from https://jcenter.bintray.com/com/facebook/react/react-native/maven-metadata.xml. Could not HEAD 'https://jcenter.bintray.com/com/facebook/react/react-native/maven-metadata.xml'. org.apache.http.client.ClientProtocolException (no error message) Failed to list versions for com.facebook.react:react-native. Unable to load Maven meta-data from https://jcenter.bintray.com/com/facebook/react/react-native/maven-metadata.xml. Could not HEAD 'https://jcenter.bintray.com/com/facebook/react/react-native/maven-metadata.xml'. org.apache.http.client.ClientProtocolException (no error message)