Giter Club home page Giter Club logo

Comments (13)

sankhadeeproy007 avatar sankhadeeproy007 commented on June 8, 2024

Which version of react-native are you using?

from native-starter-kit.

vesper8 avatar vesper8 commented on June 8, 2024

so when I was experiencing other problems, I saw a lot of closed issues pointing to running react-native upgrade from the root project folder. When I tried to do that it told me I first needed to run

npm install --save react

So I did, and then ran the upgrade command. And so below is my package.json in the root of the project

{
  "name": "NativeStarter",
  "version": "0.0.1",
  "private": true,
  "scripts": {
    "start": "node_modules/react-native/packager/packager.sh"
  },
  "dependencies": {
    "color": "^0.10.1",
    "react": "^15.1.0",
    "react-native": "0.25.1",
    "react-native-android-statusbar": "0.1.2",
    "react-native-drawer": "^1.16.6",
    "react-native-navbar": "^1.1.4",
    "react-native-router-flux": "^2.3.1",
    "react-native-selectme": "^1.0.0",
    "react-native-vector-icons": "1.0.0-rc"
  }
}

from native-starter-kit.

sankhadeeproy007 avatar sankhadeeproy007 commented on June 8, 2024

Hey can you clone the latest and check if it's working?

from native-starter-kit.

johntom avatar johntom commented on June 8, 2024

Will do and get back to you asap

On Mon, Jun 13, 2016 at 10:34 AM Sankhadeep Roy [email protected]
wrote:

Hey can you clone the latest and check if it's working?


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#8 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/ABylgHjZDZwTOM3lpwXEmoBFXWlMw6rGks5qLWqKgaJpZM4I0JTS
.

from native-starter-kit.

johntom avatar johntom commented on June 8, 2024

1)I installed latest and tried to run against genymotion 5x-6.0.0- API 23
and 60-6.0.0.0 - API 23

  1. c:\react\NativeStarterPro-v31\NativeStarterPro>react-native run-android
    See e1
    2a) I
    changed C:\react\NativeStarterPro-v31\NativeStarterPro\android\settings.gradle
    from / to

    project(':react-native-code-push').projectDir = new
    File(rootProject.projectDir,
    '../node_modules/react-native-code-push/android/app') but get *e2

*e1
Starting JS server...
Building and installing the app on the device (cd android && gradlew.bat
installDebug...

FAILURE: Build failed with an exception.

  • Where:
    Settings file
    'C:\react\NativeStarterPro-v31\NativeStarterPro\android\settings.gradle'
    line: 5

  • What went wrong:
    Could not compile settings file
    'C:\react\NativeStarterPro-v31\NativeStarterPro\android\settings.gradle'.

    startup failed:
    settings file
    'C:\react\NativeStarterPro-v31\NativeStarterPro\android\settings.gradle':
    5: unexpected char: '' @ line 5, column 121.
    modules\react-native-code-push\android\a
    ^

    1 error

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

BUILD FAILED

Total time: 1.378 secs
Could not install the app on the device, read the error above for details.
Make sure you have an Android emulator running or a device connected and
have
set up your Android development environment:
https://facebook.github.io/react-native/docs/android-setup.html

c:\react\NativeStarterPro-v31\NativeStarterPro>

*e2

:app:generateDebugSources
:app:processDebugJavaRes UP-TO-DATE
:app:compileDebugJavaWithJavac
C:\react\NativeStarterPro-v31\NativeStarterPro\android\app\src\main\java\com\nsp\MainActivity.java:41:
error: ')' expected
new CodePush(${androidDeploymentKey}, this, BuildConfig.DEBUG),
^
C:\react\NativeStarterPro-v31\NativeStarterPro\android\app\src\main\java\com\nsp\MainActivity.java:41:
error: expected
new CodePush(${androidDeploymentKey}, this, BuildConfig.DEBUG),
^
C:\react\NativeStarterPro-v31\NativeStarterPro\android\app\src\main\java\com\nsp\MainActivity.java:41:
error: illegal start of type
new CodePush(${androidDeploymentKey}, this, BuildConfig.DEBUG),
^
C:\react\NativeStarterPro-v31\NativeStarterPro\android\app\src\main\java\com\nsp\MainActivity.java:41:
error: as of release 8, 'this' is allowed as the parameter name for the
receiver type only, which has to be the first parameter
new CodePush(${androidDeploymentKey}, this, BuildConfig.DEBUG),
^
C:\react\NativeStarterPro-v31\NativeStarterPro\android\app\src\main\java\com\nsp\MainActivity.java:41:
error: ';' expected
new CodePush(${androidDeploymentKey}, this, BuildConfig.DEBUG),
^
C:\react\NativeStarterPro-v31\NativeStarterPro\android\app\src\main\java\com\nsp\MainActivity.java:41:
error: expected
new CodePush(${androidDeploymentKey}, this, BuildConfig.DEBUG),
^
C:\react\NativeStarterPro-v31\NativeStarterPro\android\app\src\main\java\com\nsp\MainActivity.java:41:
error: illegal start of type
new CodePush(${androidDeploymentKey}, this, BuildConfig.DEBUG),
^
C:\react\NativeStarterPro-v31\NativeStarterPro\android\app\src\main\java\com\nsp\MainActivity.java:41:
error: expected
new CodePush(${androidDeploymentKey}, this, BuildConfig.DEBUG),
^
C:\react\NativeStarterPro-v31\NativeStarterPro\android\app\src\main\java\com\nsp\MainActivity.java:42:
error: ';' expected
new VectorIconsPackage(),
^
C:\react\NativeStarterPro-v31\NativeStarterPro\android\app\src\main\java\com\nsp\MainActivity.java:42:
error: illegal start of type
new VectorIconsPackage(),
^
C:\react\NativeStarterPro-v31\NativeStarterPro\android\app\src\main\java\com\nsp\MainActivity.java:42:
error: expected
new VectorIconsPackage(),
^
C:\react\NativeStarterPro-v31\NativeStarterPro\android\app\src\main\java\com\nsp\MainActivity.java:42:
error: expected
new VectorIconsPackage(),
^
C:\react\NativeStarterPro-v31\NativeStarterPro\android\app\src\main\java\com\nsp\MainActivity.java:43:
error: invalid method declaration; return type required
new CodePush(null, this, BuildConfig.DEBUG)
^
C:\react\NativeStarterPro-v31\NativeStarterPro\android\app\src\main\java\com\nsp\MainActivity.java:43:
error: illegal start of type
new CodePush(null, this, BuildConfig.DEBUG)
^
C:\react\NativeStarterPro-v31\NativeStarterPro\android\app\src\main\java\com\nsp\MainActivity.java:43:
error: illegal start of type
new CodePush(null, this, BuildConfig.DEBUG)
^
C:\react\NativeStarterPro-v31\NativeStarterPro\android\app\src\main\java\com\nsp\MainActivity.java:43:
error: expected
new CodePush(null, this, BuildConfig.DEBUG)
^
C:\react\NativeStarterPro-v31\NativeStarterPro\android\app\src\main\java\com\nsp\MainActivity.java:43:
error: ';' expected
new CodePush(null, this, BuildConfig.DEBUG)
^
C:\react\NativeStarterPro-v31\NativeStarterPro\android\app\src\main\java\com\nsp\MainActivity.java:45:
error: ')' expected
}
^
C:\react\NativeStarterPro-v31\NativeStarterPro\android\app\src\main\java\com\nsp\MainActivity.java:46:
error: reached end of file while parsing
}
^
C:\react\NativeStarterPro-v31\NativeStarterPro\android\app\src\main\java\com\nsp\MainActivity.java:47:
error: reached end of file while parsing
20 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.

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

BUILD FAILED

from native-starter-kit.

johntom avatar johntom commented on June 8, 2024

To be clear as I had a type this is how settings.gradle looks after the
change

include ':app'
include ':react-native-code-push'
project(':react-native-code-push').projectDir = new
File(rootProject.projectDir,
'../node_modules/react-native-code-push/android/app')
include ':react-native-vector-icons'
project(':react-native-vector-icons').projectDir = new
File(rootProject.projectDir,
'../node_modules/react-native-vector-icons/android')
include ':react-native-code-push'
project(':react-native-code-push').projectDir = new
File(rootProject.projectDir,
'../node_modules/react-native-code-push/android/app')

On Mon, Jun 13, 2016 at 10:34 AM Sankhadeep Roy [email protected]
wrote:

Hey can you clone the latest and check if it's working?


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#8 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/ABylgHjZDZwTOM3lpwXEmoBFXWlMw6rGks5qLWqKgaJpZM4I0JTS
.

from native-starter-kit.

johntom avatar johntom commented on June 8, 2024

I also tried npm install -g rnpm to get version 1.9.0 but stll same issuesrnpm
linkrnpm linkn

On Mon, Jun 13, 2016 at 10:34 AM Sankhadeep Roy [email protected]
wrote:

Hey can you clone the latest and check if it's working?


You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
#8 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/ABylgHjZDZwTOM3lpwXEmoBFXWlMw6rGks5qLWqKgaJpZM4I0JTS
.

from native-starter-kit.

sanketsahu avatar sanketsahu commented on June 8, 2024

@johntom Thanks for all the help John! We are looking into it.

from native-starter-kit.

sankhadeeproy007 avatar sankhadeeproy007 commented on June 8, 2024

@johntom delete the Android directory. Run react-native android, replace the files it asks you to. Hit return/enter when it prompts you for the code-push deployment, rnpm link, you should be good to go.

from native-starter-kit.

johntom avatar johntom commented on June 8, 2024

Ok I did that and now get the following in settings.gradle
rootProject.name = 'NSP'
include ':app'

Android icon displays on phone WITH NSP undeneath but I just get the RN
Welcome to React native! form.

I replaced the settings.gradle but with same results.
John

On Mon, Jun 13, 2016 at 2:23 PM Sankhadeep Roy [email protected]
wrote:

@johntom https://github.com/johntom delete the Android directory. Run react-native
android, replace the files it asks you to. Hit return/enter when it
prompts you for the code-push deployment, you should be good to go.


You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub
#8 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/ABylgO1Q7EcGFzNUYWbT5JBecsKvPv4Iks5qLaA9gaJpZM4I0JTS
.

from native-starter-kit.

johntom avatar johntom commented on June 8, 2024

Was never prompted about code-push

On Mon, Jun 13, 2016 at 2:23 PM Sankhadeep Roy [email protected]
wrote:

@johntom https://github.com/johntom delete the Android directory. Run react-native
android, replace the files it asks you to. Hit return/enter when it
prompts you for the code-push deployment, you should be good to go.


You are receiving this because you were mentioned.

Reply to this email directly, view it on GitHub
#8 (comment),
or mute the thread
https://github.com/notifications/unsubscribe/ABylgO1Q7EcGFzNUYWbT5JBecsKvPv4Iks5qLaA9gaJpZM4I0JTS
.

from native-starter-kit.

SupriyaKalghatgi avatar SupriyaKalghatgi commented on June 8, 2024

@johntom while runningreact-native android, you will be prompted to replace the files.
After that you got to overwrite the content of files those are being replaced.

from native-starter-kit.

SupriyaKalghatgi avatar SupriyaKalghatgi commented on June 8, 2024

Fixed with latest update

from native-starter-kit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.