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.

Build Failed on Android

See original GitHub issue

The Error Occurs:

A problem occurred configuring project ':app'.
> Could not resolve all dependencies for configuration ':app:_debugApk'.
   > A problem occurred configuring project ':tipsi-stripe'.
      > You have not accepted the license agreements of the following SDK components:
        [Android SDK Build-Tools 25].
        Before building your project, you need to accept the license agreements and complete the installation of the missing components using the Android Studio SDK Manager.
        Alternatively, to learn how to transfer the license agreements from one workstation to another, go to http://d.android.com/r/studio-ui/export-licenses.html

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

My App dependencies:

  1. react v16.0.0-alpha.12
  2. react-native v0.48.4
  3. tipsi-stripe v4.1.0

android build.gradle config:

android {
    compileSdkVersion 25
    buildToolsVersion "23.0.1"
    ....
    defaultConfig {
        .....
        minSdkVersion 16
        targetSdkVersion 25
        .....
    }
}

Device:

  • MBP OSX ElCapitan 10.11.6

How to resolve this? Thanks

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
isnifercommented, Nov 7, 2017

image

0reactions
ikhsanalatsarycommented, Nov 11, 2017

Thanks, @isnifer for your help. so I need install android studio first. rebuild with it and it works.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Failed to build project with Android studio - Stack Overflow
File->Other Settings->Default Project Structure · Under Project Settings: Project, set Project SDK as Android SDK. · Click Edit button · For Android SDK,...
Read more >
Why does a build fail in Android Studio even if I don't ... - Quora
There are several causes for gradle build fail in Android studio. Few reasons might be: * Dependencies added * Importing the project from...
Read more >
Different Ways to fix "Error running android: Gradle project ...
Method 1: Restarting your project using Invalidate Caches and Restart option · Method 2: Sync your project with Gradle files · Method 3:...
Read more >
Known issues with Android Studio and Android Gradle Plugin
When you navigate to Build > Generate Signed Bundle / APK and attempt to ... If that process fails, the IDE may not...
Read more >
Gradle build failed with unknown error. Please see logs for the ...
I found the source of my problem by running expo doctor . It turns out I had my android versionCode set to a...
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