Closed oluwaseye closed 7 years ago
The plugin seems throw the exception above and
java.lang.NullPointerException: SimpleDraweeView was not initialized
It seems the latest version does not play well with tns-core-modules v3.** even though it requires it.
In case anyone else runs into the same issue
My solution NaitveScript 3.2.* In your project
npm uninstall tns-core-modules --save
tns platform remove android
if you have the latest plugin
tns plugin remove nativescript-fresco
Then install/add the following versions.
npm install tns-core-modules@2.5.0 --save
tns plugin add nativescript-fresco@1.0.16
tns platform add android@2.5.0
This is what worked. Hope the new version of the plugin gets fixed soon.
Hi @oluwaseye ,
I just update the repositories demo app to the latest deps version (you can see them here) and did manage to run the project without any errors or issues what so ever. Maybe in your project there is a mismatch between nativescript-angular, angular itself and the tns-core-modules which is leading to this error.
Can you try to run the demo app from this repository and see if it runs on your side, you ca n follow this wiki page on how to build the source code and run the demo app.
@oluwaseye What do you mean by
NaitveScript 3.2.*
The latest and current version of NativeScript is 3.1.3 and tns-core-modules is 3.1.1
@VladimirAmiorkov I meant the latest Nativescript. I'll try the demo app and let you know if it works running the latest tns-core-modules.
Should have posted this a while back. @VladimirAmiorkov On a Pure JS Nativescript core project, here's what finally worked when initializing in the app.js file.
application.on("launch", function () {
fresco.initialize();
});
and not this, as shown in the README
application.onLaunch = function (intent) {
fresco.initialize();
};
Thanks
Hi, it looks like the readme was not updated with the breaking change ofthe launch event. Feel free to make a PR if you want to help the community, thank you for bringing this to our my attention.
On Fri, Sep 8, 2017, 14:25 Oluwaseye notifications@github.com wrote:
Should have posted this a while back. @VladimirAmiorkov https://github.com/vladimiramiorkov On a Pure JS Nativescript core project, here's what finally worked when initializing in the app.js file.
application.on("launch", function () { fresco.initialize(); });
and not this, as shown in the README
application.onLaunch = function (intent) { fresco.initialize(); };
Thanks
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/NativeScript/nativescript-fresco/issues/47#issuecomment-328078485, or mute the thread https://github.com/notifications/unsubscribe-auth/AEwh4w6NWhXoj8ylUNFpxPNoJ92KVlddks5sgSQkgaJpZM4O4yko .
--
Vladimir Amiorkov Email: v.amiorkov@gmail.com
Awesome!. Glad to contribute to the community. Created a pull request with the updated Launch event.
Closing this issue, resolution here
VanillaJS nativescript project
app.js
home.xml
Need some help. Here's the Exception from the plugin