Comments (13)
Which version of react-native are you using?
from native-starter-kit.
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.
Hey can you clone the latest and check if it's working?
from native-starter-kit.
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.
1)I installed latest and tried to run against genymotion 5x-6.0.0- API 23
and 60-6.0.0.0 - API 23
- 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.
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.
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.
@johntom Thanks for all the help John! We are looking into it.
from native-starter-kit.
@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.
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.
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.
@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.
Fixed with latest update
from native-starter-kit.
Related Issues (20)
- ERROR Error watching file for changes: EMFILE HOT 2
- How to rename this project HOT 12
- Disable drawer gesture for Drawer HOT 5
- StackNav variable in MainStackRouter.js is promotion to global HOT 1
- after update react native 0.46.4,error out. HOT 4
- (node:404) DeprecationWarning: node --debug is deprecated. Please use node --inspect instead. HOT 1
- react version problem HOT 5
- yarn install error HOT 4
- SDK Build Tools Version Used by Starter Kit Out of Date HOT 1
- How to Retrieve data from AsyncStorage
- Codepush crashes on Android but works on iOS
- Login button's first press not fired HOT 1
- What does the @ symbol do in javascript imports? HOT 2
- Drawer Navigating Animation HOT 8
- Picker itemTextStyle,itemTextStyle,textStyle not working HOT 1
- Could not determine java version from '10.0.1'. ??
- How i run this project on expo ? HOT 2
- var oldJsCodeLocationAssignmentStatement = appDelegateContents.match(/(jsCodeLocation = .*)/)[1]; HOT 1
- Update?
- Unable to resolve module "color" from "js\themes\base-theme.js"
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from native-starter-kit.