-
-
Notifications
You must be signed in to change notification settings - Fork 344
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
tns run android --emulator #55
Comments
@leshin seems like you are trying to build the project with a difference in versions between the |
i had the same problem
|
@gadonski , can you check the version of your |
Yep... tns-core-modules - 1.5.1 "nativescript": {
"id": "com.tjvantoll.groceries",
"tns-ios": {
"version": "1.5.2"
},
"tns-android": {
"version": "1.5.1"
}
},
"dependencies": {
"email-validator": "^1.0.3",
"nativescript-iqkeyboardmanager": "^1.0.0",
"nativescript-social-share": "^1.1.2",
"nativescript-floatingactionbutton": "^0.1.4",
"nativescript-telerik-ui": "0.2.3",
"nativescript-unit-test-runner": "^0.2.8",
"tns-core-modules": "1.5.1"
}, |
I've got i working by changing "tns-core-modules": "1.5.1" in .../sample-Groceries/package.json to "1.6.0" before building/running the tutorial for the first time |
@leshin I just updated this repo to use 1.6 throughout. Could you pull down the changes, try again, and let us know if you’re still having the same issue? Thanks. |
@tjvantoll Yeah, it's ok. Thanks! |
java.lang.RuntimeException: Unable to start activity ComponentInfo{org.nativescript.groceries/com.tns.NativeScriptActivity}: com.tns.NativeScriptException:
Calling js method onCreate failed
TypeError: Cannot read property 'widgets' of undefined
File: "/data/data/org.nativescript.groceries/files/app/tns_modules/ui/frame/frame.js, line: 327, column: 39
StackTrace:
Frame: function:'NativeActivity.onCreate', file:'/data/data/org.nativescript.groceries/files/app/tns_modules/ui/frame/frame.js', line: 327, column: 40
Caused by: com.tns.NativeScriptException:
Calling js method onCreate failed
TypeError: Cannot read property 'widgets' of undefined
File: "/data/data/org.nativescript.groceries/files/app/tns_modules/ui/frame/frame.js, line: 327, column: 39
StackTrace:
Frame: function:'NativeActivity.onCreate', file:'/data/data/org.nativescript.groceries/files/app/tns_modules/ui/frame/frame.js', line: 327, column: 40
The text was updated successfully, but these errors were encountered: