question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

This package not working for me

See original GitHub issue

I am install this package using following commands

npm i react-native-splash-screen --save and after that run following command react-native link react-native-splash-screen

When i run react-native run-android i am getting following error on terminal

screen shot 2018-06-08 at 3 58 31 pm

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

4reactions
RobertSasakcommented, Jun 11, 2018

I found this solution. https://stackoverflow.com/questions/45615474/gradle-error-could-not-find-method-implementation-for-arguments-com-android

I opened node_modules/react-native-splash-screen/android/build.gradle and replaced implementation by compile and testImplementation with testCompile.

Here is my final build.gradle

apply plugin: 'com.android.library'

android {
    compileSdkVersion 27
    buildToolsVersion "27.0.3"

    defaultConfig {
        minSdkVersion 16
        targetSdkVersion 23
        versionCode 1
        versionName "1.0"
    }
    buildTypes {
        release {
            minifyEnabled false
            proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
        }
    }
}

dependencies {
    compile fileTree(dir: 'libs', include: ['*.jar'])
    testCompile 'junit:junit:4.12'
    compile 'com.android.support:appcompat-v7:27.0.2'
    compile "com.facebook.react:react-native:+"  // From node_modules
}
1reaction
crazycodeboycommented, Jun 13, 2018

Beginning with the 3.0.9 version build.gradle will be kept with react-native build.gradle.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Android Package Installer Not Working - YouTube
Let's fix your Android package installer if it's not working properly in this quick and easy guide.If you find that Android's package ......
Read more >
Issues installing "forecast" package in R - Stack Overflow
I had the same problems, changing primary CRAN repository works for me Tools > Global Options > Packages.
Read more >
why is the sectsty package not working (for me) with \paragraph?
I want to retouch the behavior of \paragraph but something is bad in my code, Can anybody help me? \documentclass[12pt]{book} \usepackage[utf8]{ ...
Read more >
'package 'foo' is not available' - What to do when R tells you it ...
This common error means the package you're looking for can't be installed from CRAN. This is how you solve it.
Read more >
Issue with installed.packages - "Updating Loaded Packages
Hi there, I have been receiving error msg installing packages. Everytime I run a code it says "Updating Loaded Packages - One or...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found