Skip to content

Cannot build on Android #44

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
signorekai opened this issue Jan 16, 2017 · 6 comments
Closed

Cannot build on Android #44

signorekai opened this issue Jan 16, 2017 · 6 comments

Comments

@signorekai
Copy link

Error:
node_modules/react-native-oauth/android/src/main/java/io/fullstack/oauth/OAuthManagerFragmentController.java:32: error: cannot find symbol import com.github.scribejava.core.exceptions.OAuthConnectionException; ^ symbol: class OAuthConnectionException location: package com.github.scribejava.core.exceptions /Users/alfredlau/Work/bite/node_modules/react-native-oauth/android/src/main/java/io/fullstack/oauth/OAuthManagerFragmentController.java:281: error: cannot find symbol } catch (OAuthConnectionException ex) {

I'm unable to build my app. Looking into scribejava seems to suggest that exceptions/OAuthConnectionException no longer exists, though I'm not really fluent in Java.

@tryggvigy
Copy link

tryggvigy commented Jan 16, 2017

Having the same issue.
OAuthConnectionException is still present in scribejava.
https://github.com/scribejava/scribejava/blob/c9ac8639566a67502fcfca52f3b6aac3d1df96f7/scribejava-core/src/main/java/com/github/scribejava/core/exceptions/OAuthConnectionException.java

But when I run `./gradlew assembleRelease --info` I get the following:
Evaluating project ':react-native-oauth' using build file '<my project>/node_modules/react-native-oauth/android/build.gradle'.
Creating configuration compile.
Creating configuration publish.
Creating configuration provided.
Creating configuration wearApp.
Creating configuration androidTestCompile.
Creating configuration androidTestPublish.
Creating configuration androidTestProvided.
Creating configuration androidTestWearApp.
Creating configuration testCompile.
Creating configuration testPublish.
Creating configuration testProvided.
Creating configuration testWearApp.
Creating configuration debugCompile.
Creating configuration debugPublish.
Creating configuration debugProvided.
Creating configuration debugWearApp.
Creating configuration testDebugCompile.
Creating configuration testDebugPublish.
Creating configuration testDebugProvided.
Creating configuration testDebugWearApp.
Creating configuration releaseCompile.
Creating configuration releasePublish.
Creating configuration releaseProvided.
Creating configuration releaseWearApp.
Creating configuration testReleaseCompile.
Creating configuration testReleasePublish.
Creating configuration testReleaseProvided.
Creating configuration testReleaseWearApp.
Failed to get resource: GET. [HTTP HTTP/1.1 401 Repo not found or no access token provided: https://jitpack.io/com/github/scribejava/scribejava-apis/maven-metadata.xml]
Failed to get resource: GET. [HTTP HTTP/1.1 401 Repo not found or no access token provided: https://jitpack.io/com/github/scribejava/scribejava-apis/maven-metadata.xml]
Failed to get resource: GET. [HTTP HTTP/1.1 401 Repo not found or no access token provided: https://jitpack.io/com/github/scribejava/scribejava-apis/maven-metadata.xml]
Failed to get resource: GET. [HTTP HTTP/1.1 401 Repo not found or no access token provided: https://jitpack.io/com/github/scribejava/scribejava-apis/maven-metadata.xml]
Failed to get resource: GET. [HTTP HTTP/1.1 401 Repo not found or no access token provided: https://jitpack.io/com/github/scribejava/scribejava-apis/maven-metadata.xml]
Failed to get resource: GET. [HTTP HTTP/1.1 401 Repo not found or no access token provided: https://jitpack.io/com/github/scribejava/scribejava-apis/maven-metadata.xml]
Failed to get resource: GET. [HTTP HTTP/1.1 401 Repo not found or no access token provided: https://jitpack.io/com/github/scribejava/scribejava-apis/maven-metadata.xml]
Failed to get resource: GET. [HTTP HTTP/1.1 401 Repo not found or no access token provided: https://jitpack.io/com/github/scribejava/scribejava-apis/maven-metadata.xml]
Failed to get resource: GET. [HTTP HTTP/1.1 401 Repo not found or no access token provided: https://jitpack.io/com/github/scribejava/scribejava-apis/maven-metadata.xml]
Failed to get resource: GET. [HTTP HTTP/1.1 401 Repo not found or no access token provided: https://jitpack.io/com/github/scribejava/scribejava-apis/maven-metadata.xml]
Failed to get resource: GET. [HTTP HTTP/1.1 401 Repo not found or no access token provided: https://jitpack.io/com/github/scribejava/scribejava-apis/maven-metadata.xml]
Failed to get resource: GET. [HTTP HTTP/1.1 401 Repo not found or no access token provided: https://jitpack.io/com/github/scribejava/scribejava-apis/maven-metadata.xml]
Failed to get resource: GET. [HTTP HTTP/1.1 401 Repo not found or no access token provided: https://jitpack.io/com/github/scribejava/scribejava-apis/maven-metadata.xml]
Failed to get resource: GET. [HTTP HTTP/1.1 401 Repo not found or no access token provided: https://jitpack.io/com/github/scribejava/scribejava-apis/maven-metadata.xml]
Failed to get resource: GET. [HTTP HTTP/1.1 401 Repo not found or no access token provided: https://jitpack.io/com/github/scribejava/scribejava-apis/maven-metadata.xml]
Failed to get resource: GET. [HTTP HTTP/1.1 401 Repo not found or no access token provided: https://jitpack.io/com/github/scribejava/scribejava-apis/maven-metadata.xml]
Failed to get resource: GET. [HTTP HTTP/1.1 401 Repo not found or no access token provided: https://jitpack.io/com/github/scribejava/scribejava-apis/maven-metadata.xml]
Failed to get resource: GET. [HTTP HTTP/1.1 401 Repo not found or no access token provided: https://jitpack.io/com/github/scribejava/scribejava-apis/maven-metadata.xml]
Failed to get resource: GET. [HTTP HTTP/1.1 401 Repo not found or no access token provided: https://jitpack.io/com/github/scribejava/scribejava-apis/maven-metadata.xml]
Failed to get resource: GET. [HTTP HTTP/1.1 401 Repo not found or no access token provided: https://jitpack.io/com/github/scribejava/scribejava-apis/maven-metadata.xml]

I'v got maven { url "https://jitpack.io" } under "allProjects" in android/build.gradle like the README mentions so thats not the issue.

This is what I'm presented with if I navigate to the resource.
image

@BarakChamo
Copy link

BarakChamo commented Jan 16, 2017

Just came across the same issue.

scribejava 4.0 has breaking changes, fixed (for now) by limiting the dependency to
compile 'com.github.scribejava:scribejava-apis:3.+' in build.gradle

Seems like that's already done on master

@tryggvigy
Copy link

Yub, Thanks. modifying node_modules/react-native-oauth/android/build.gradle fixed this for me.

Replaced compile 'com.github.scribejava:scribejava-apis:+' with compile 'com.github.scribejava:scribejava-apis:3.+'

@tryggvigy
Copy link

tryggvigy commented Jan 16, 2017

Did not see that the latest version has already done this. 93c38f6
So using latest master should be enough.

@auser
Copy link
Contributor

auser commented Jan 17, 2017

Yep, the next npm release will fix this bug. (Working on #42 currently before I release a new patch version)

@auser
Copy link
Contributor

auser commented Jan 17, 2017

This should be fixed with the latest version (2.1.14)

@auser auser closed this as completed Jan 17, 2017
kant added a commit to kant/react-native-oauth that referenced this issue Jan 23, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants