react-native-bluetooth-cross-platform icon indicating copy to clipboard operation
react-native-bluetooth-cross-platform copied to clipboard

run-android fails after install

Open ourapolloproject opened this issue 7 years ago • 12 comments

Hi Alex! Thanks so much for creating this library and underdark. Looks perfect for my application. I'm having some trouble getting it installed. Followed the instructions in readme but getting this error targeting Android 5.1

WifiTest me$ react-native -v react-native-cli: 2.0.1 react-native: 0.42.0

:app:compileDebugJavaWithJavac :app:compileDebugJavaWithJavac - is not incremental (e.g. outputs have changed, no previous execution, etc.). /Users/me/dev/WifiTest/android/app/src/main/java/com/wifitest/MainApplication.java:5: error: cannot find symbol import com.facebook.react.ReactApplication; ^ symbol: class ReactApplication location: package com.facebook.react /Users/me/dev/WifiTest/android/app/src/main/java/com/wifitest/MainApplication.java:7: error: cannot find symbol import com.facebook.react.ReactNativeHost; ^ symbol: class ReactNativeHost location: package com.facebook.react /Users/me/dev/WifiTest/android/app/src/main/java/com/wifitest/MainApplication.java:17: error: cannot find symbol public class MainApplication extends Application implements ReactApplication { ^ symbol: class ReactApplication /Users/me/dev/WifiTest/android/app/src/main/java/com/wifitest/MainApplication.java:19: error: cannot find symbol private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) { ^ symbol: class ReactNativeHost location: class MainApplication /Users/me/dev/WifiTest/android/app/src/main/java/com/wifitest/MainApplication.java:36: error: cannot find symbol public ReactNativeHost getReactNativeHost() { ^ symbol: class ReactNativeHost location: class MainApplication /Users/me/dev/WifiTest/android/app/src/main/java/com/wifitest/MainActivity.java:5: error: MainActivity is not abstract and does not override abstract method getPackages() in ReactActivity public class MainActivity extends ReactActivity { ^ /Users/me/dev/WifiTest/android/app/src/main/java/com/wifitest/MainApplication.java:19: error: cannot find symbol private final ReactNativeHost mReactNativeHost = new ReactNativeHost(this) { ^ symbol: class ReactNativeHost location: class MainApplication /Users/me/dev/WifiTest/android/app/src/main/java/com/wifitest/MainApplication.java:35: error: method does not override or implement a method from a supertype @Override ^ 8 errors :app:compileDebugJavaWithJavac FAILED

FAILURE: Build failed with an exception.

  • What went wrong: Execution failed for task ':app:compileDebugJavaWithJavac'.

Compilation failed; see the compiler error output for details.

ourapolloproject avatar Mar 10 '17 06:03 ourapolloproject

@ourapolloproject I'll take a look sometime today and see if I can resolve this issue.

alexkendall avatar Mar 15 '17 16:03 alexkendall

Thanks @alexkendall

ourapolloproject avatar Mar 17 '17 03:03 ourapolloproject

@alexkendall Has the problem been solved?

baiej214 avatar Mar 24 '17 02:03 baiej214

@alexkendall I am facing the same problem. I am a beginner. What's the solution, if any? Thank you.

priyankark avatar May 20 '17 18:05 priyankark

This is happening to me as well. Pinging @virl, do you have any idea why this is happening?

Emilios1995 avatar May 22 '17 21:05 Emilios1995

@Emilios1995 Hi. No, I'm currently completely unfamiliar with React build mechanics.

virl avatar May 23 '17 06:05 virl

Been having the same problem. In the android installation guide it states:

Under your project level build.gradle under repositories add the underdark dependency

repositories {
    ...
    maven {
        url 'https://dl.bintray.com/underdark/android/'
    }
}

so what I did at first was:

repositories {
        mavenLocal()
        jcenter()
        maven {
            // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
            url "$rootDir/../node_modules/react-native/android"
            url 'https://dl.bintray.com/underdark/android/'
        }
    }

but when you change it to:

repositories {
        mavenLocal()
        jcenter()
        maven {
            // All of React Native (JS, Obj-C sources, Android binaries) is installed from npm
            url "$rootDir/../node_modules/react-native/android"
        }
        maven {
            url 'https://dl.bintray.com/underdark/android/'
        }
    }

run-android works! I am currently at react native version 0.45.

CaptAhak avatar Jun 12 '17 18:06 CaptAhak

I can confirm it works now with @CaptAhak's solution.

Emilios1995 avatar Jun 14 '17 01:06 Emilios1995

Could not HEAD 'https://dl.bintray.com/underdark/android/io/underdark/underdark/maven-metadata.xml'. Received status code 403 from server: Forbidden

The server that underdark relies on (jFrog bintray) is being shut off. Expect builds to fail once your network cache clears.

Awnage avatar May 04 '21 08:05 Awnage

I tried above and did not work for me , any solution for this issue , even i am getting 403 . > Could not GET 'https://dl.bintray.com/underdark/android/io/underdark/underdark/maven-metadata.xml'. Received status code 403 from server: Forbidden

savitaraghuvanshi avatar Jun 04 '21 16:06 savitaraghuvanshi

@Awnage I came back to an old project to be confronted by this issue. Is there any way to fix this?

HZSamir avatar Feb 07 '22 11:02 HZSamir

@Unforgiven-wanda I managed to find an old copy of the files and placed them on an internal server. I modified the maven path to look for the files there instead of out on bintray. Alas I no longer work for my previous company so I don't have access to the specific files anymore.

Awnage avatar Feb 07 '22 13:02 Awnage