Skip to content
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

SimpleBackgroundHttp doesnot run on android #52

Closed
nalinimanduva opened this issue Feb 8, 2017 · 3 comments
Closed

SimpleBackgroundHttp doesnot run on android #52

nalinimanduva opened this issue Feb 8, 2017 · 3 comments

Comments

@nalinimanduva
Copy link

@NathanaelA

When I try to run the example application in android I get the error message.

java.lang.RuntimeException: Unable to start activity ComponentInfo{org.nativescript.SimpleBackgroundHttp/com.tns.NativeScriptActivity}: com.tns.NativeScriptException:
Calling js method onCreate failed

Error calling module function

Error calling module function

ReferenceError: net is not defined
File: "/data/data/org.nativescript.SimpleBackgroundHttp/files/app/tns_modules/nativescript-background-http/background-http.js, line: 6, column: 23

StackTrace:
Frame: function:'', file:'/data/data/org.nativescript.SimpleBackgroundHttp/files/app/tns_modules/nativescript-background-http/background-http.js', line: 6, column: 24
Frame: function:'require', file:'', line: 1, column: 266
Frame: function:'', file:'/data/data/org.nativescript.SimpleBackgroundHttp/files/app/main-page.js', line: 1, column: 74
Frame: function:'require', file:'', line: 1, column: 266
Frame: function:'global.loadModule', file:'/data/data/org.nativescript.SimpleBackgroundHttp/files/app/tns_modules/globals/globals.js', line: 29, column: 3

@NathanaelA

This comment was marked as abuse.

@nalinimanduva
Copy link
Author

@NathanaelA - I have pulled the latest code and trying to run. The app runs like a champ on ios. But when I do the build and emulate on android it is showing me this error. I have tried tns plugin remove and adding again. I have removed the android platform and added again but I still get the same error as I mentioned above. Please help.

@nalinimanduva
Copy link
Author

aah I got it! I changed the android version to 2.5.0 in package.json of the SimpleBackgroundHttp example and it worked like a champ.
Thanks for the Multipart upload!!

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

2 participants