Open acharyaks90 opened 5 years ago
Same problem after creating new nativescript app for android, using tns create myApp tns install typescript tns platform add android
and then running in Visual studio
Did not have this problem before
Starting new:
Tns create test gives:
`Microsoft Windows [Version 10.0.17134.345]
(c) 2018 Microsoft Corporation. Alle rechten voorbehouden.
C:\Users\Jokro>tns create test
> nativescript-dev-webpack@0.17.0 postinstall C:\Users\Jokro\test\node_modules\nativescript-dev-webpack
> node postinstall.js
Creating file: C:\Users\Jokro\test\webpack.config.js
NativeScript Webpack plugin was successfully added.
You can now bundle your project by passing --bundle flag to NativeScript CLI commands:
- tns build android --bundle
- tns build ios --bundle
- tns run android --bundle
- tns run ios --bundle
You can also pass the "--env.uglify" flag to use UglifyJS for minification.
For more information check out https://docs.nativescript.org/tooling/bundling-with-webpack#bundling.
npm notice created a lockfile as package-lock.json. You should commit this file.
npm WARN extract-text-webpack-plugin@3.0.2 requires a peer of webpack@^3.1.0 but none is installed. You must install peer dependencies yourself.
npm WARN awesome-typescript-loader@5.2.1 requires a peer of typescript@^2.7 || ^3 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})
added 598 packages from 417 contributors and audited 8394 packages in 13.306s
found 0 vulnerabilities
Project test was successfully created.
Now you can navigate to your project with $ cd test
After that you can run it on device/emulator by executing $ tns run <platform>
C:\Users\Jokro>`
tns run android gives:
C:\Users\Jokro\test>tns run android
Skipping node_modules folder! Use the syncAllFiles option to sync files from this folder.
Searching for devices...
Executing before-watchPatterns hook from C:\Users\Jokro\test\hooks\before-watchPatterns\nativescript-dev-webpack.js
Executing before-watch hook from C:\Users\Jokro\test\hooks\before-watch\nativescript-dev-webpack.js
Copying template files...
Platform android successfully added. v5.0.0
Executing before-shouldPrepare hook from C:\Users\Jokro\test\hooks\before-shouldPrepare\nativescript-dev-webpack.js
Preparing project...
Executing before-prepareJSApp hook from C:\Users\Jokro\test\hooks\before-prepareJSApp\nativescript-dev-webpack.js
Successfully prepared plugin nativescript-theme-core for android.
Successfully prepared plugin tns-core-modules for android.
Successfully prepared plugin tns-core-modules-widgets for android.
Project successfully prepared (Android)
Executing after-prepare hook from C:\Users\Jokro\test\hooks\after-prepare\nativescript-dev-webpack.js
Building project...
Gradle build...
+ setting applicationId
+ applying user-defined configuration from C:\Users\Jokro\test\app\App_Resources\Android\app.gradle
Using support library version 25.3.1
+ adding nativescript runtime package dependency: nativescript-optimized-with-inspector
+ adding aar plugin dependency: C:\Users\Jokro\test\node_modules\tns-core-modules-widgets\platforms\android\widgets-release.aar
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Project successfully built.
Installing...
Successfully installed on device with identifier 'ZL5225ZJ9R'.
Successfully transferred all files.
Refreshing application...
Successfully synced application org.nativescript.test on device ZL5225ZJ9R.
System.err: android.content.res.Resources$NotFoundException: Resource ID #0xfffffff6
System.err: at android.content.res.ResourcesImpl.getValue(ResourcesImpl.java:204)
System.err: at android.content.res.Resources.loadXmlResourceParser(Resources.java:2133)
System.err: at android.content.res.Resources.getAnimation(Resources.java:1166)
System.err: at android.view.animation.AnimationUtils.loadAnimation(AnimationUtils.java:107)
System.err: at android.support.v4.app.FragmentManagerImpl.loadAnimation(FragmentManager.java:1073)
System.err: at android.support.v4.app.FragmentManagerImpl.moveFragmentToExpectedState(FragmentManager.java:1554)
System.err: at android.support.v4.app.FragmentManagerImpl.moveToState(FragmentManager.java:1595)
System.err: at android.support.v4.app.BackStackRecord.executeOps(BackStackRecord.java:758)
System.err: at android.support.v4.app.FragmentManagerImpl.executeOps(FragmentManager.java:2363)
System.err: at android.support.v4.app.FragmentManagerImpl.executeOpsTogether(FragmentManager.java:2149)
System.err: at android.support.v4.app.FragmentManagerImpl.optimizeAndExecuteOps(FragmentManager.java:2103)
System.err: at android.support.v4.app.FragmentManagerImpl.execPendingActions(FragmentManager.java:2013)
System.err: at android.support.v4.app.FragmentManagerImpl$1.run(FragmentManager.java:710)
System.err: at android.os.Handler.handleCallback(Handler.java:789)
System.err: at android.os.Handler.dispatchMessage(Handler.java:98)
System.err: at android.os.Looper.loop(Looper.java:164)
System.err: at android.app.ActivityThread.main(ActivityThread.java:6694)
System.err: at java.lang.reflect.Method.invoke(Native Method)
System.err: at com.android.internal.os.Zygote$MethodAndArgsCaller.run(Zygote.java:240)
System.err: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:769)
System.err: android.content.res.Resources$NotFoundException: Resource ID #0xfffffff6
Error is coming while running the tns run android --bundle