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

sample-Groceries w/Telerik UI crash when using Nativescript 2.0 #86

Closed
NickIliev opened this issue May 26, 2016 · 6 comments
Closed

sample-Groceries w/Telerik UI crash when using Nativescript 2.0 #86

NickIliev opened this issue May 26, 2016 · 6 comments
Assignees

Comments

@NickIliev
Copy link
Contributor

From @3logy on May 24, 2016 17:42

Groceries worked fine with Nativescript 1.7 but update to 2.0 i can't build an Android Platform anymore. I need to remove the Telerik UI and XML using it, to be able to build again.

Copied from original issue: NativeScript/nativescript-cli#1775

@NickIliev
Copy link
Contributor Author

@3logy

I have tested sample-Groceries app with the latest NativeScript 2.0.1 and the application has build succsessfully.
Try the following steps to run the app.

  • Update to the latest NativeScript 2.0.1
  • Pull the latest version of sample-Groceries (or clone it)
  • If you have choose to pull delete the node_modules folder and run
tns platform remove android    
tns platform remove ios

You can also use the latest tns-core-modules with the following command:

npm install tns-core-modules@latest
  • Add the platforms
tns platform add android

@3logy
Copy link

3logy commented May 26, 2016

@NickIliev
Done.. i can build it... thank you. But i have this one while building:

Skip com.telerik.android.primitives.widget.sidedrawer.BlurFadeLayer
Error: java.lang.NullPointerException
'assets/metadata/treeNodeStream.dat' NOT FOUND
'assets/metadata/treeStringsStream.dat' NOT FOUND
'assets/metadata/treeValueStream.dat' NOT FOUND
'assets/metadata/treeNodeStream.dat'...
'assets/metadata/treeStringsStream.dat'...
'assets/metadata/treeValueStream.dat'...
:transformClassesWithDexForF0F1Debug

hoping this is not a boomerang.

@NickIliev
Copy link
Contributor Author

@3logy

Can you check your JDK and Android SDK versions.
Nativescript requares the fiollowing:

JDK 8 or a later stable official release
Android SDK 22 or a later stable official release

Also you can try to remove the telerik-ui plugin and add it again (meanwhil repeating the removal of node_moudles and platforms folders)

tns plugin remove nativescript-telerik-ui
tns plugin add nativescript-telerik-ui

@3logy
Copy link

3logy commented May 26, 2016

I use Java 1.8.0_77 and android-23
Here another null pointer while building :

asbg:generateBindings
java.lang.NullPointerException  at org.nativescript.staticbindinggenerator.Generator.collectInterfaceMethods(Generator.java:505)
        at org.nativescript.staticbindinggenerator.Generator.getPublicApi(Generator.java:127)
        at org.nativescript.staticbindinggenerator.Generator.processRows(Generator.java:82)
        at org.nativescript.staticbindinggenerator.Generator.go(Generator.java:54)
        at org.nativescript.staticbindinggenerator.Generator.main(Generator.java:36)
:generateF0F1DebugAssets UP-TO-DATE

But i can run "Groceries"

@NickIliev
Copy link
Contributor Author

@3logy

The error you are receiving is related to NativeScript/android#459 and is scheduled for fixing with release 2.1.

If however your app is not runnig you may try again the steps suggested above (remoe the platform folder and re-build your app)

@dtopuzov
Copy link
Contributor

Can not reproduce with {N} 2.1.1 and master of Groceries.

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

3 participants