-
-
Notifications
You must be signed in to change notification settings - Fork 23
Closed
Labels
Description
I've inserted the following lines in my
app.js
var fresco = require("nativescript-fresco");
if(application.android){
application.onLaunch = function(intent){
fresco.initialize();}
}
However , as soon as I start the app I get the following stacktrace:
java.lang.RuntimeException: Unable to create application com.tns.NativeScriptApplication: com.tns.NativeScriptException:
Fail to load module: /data/data/org.nativescript.haloose/files/app/app.js
TypeError: Cannot read property 'AnimatedDrawable' of undefined
File: "<unknown>, line: 1, column: 265
StackTrace:
Frame: function:'', file:'/data/data/org.nativescript.haloose/files/app/tns_modules/nativescript-fresco/nativescript-fresco.js', line: 35, column: 43
Frame: function:'require', file:'', line: 1, column: 266
Frame: function:'', file:'/data/data/org.nativescript.haloose/files/app/app.js', line: 4, column: 14
Frame: function:'require', file:'', line: 1, column: 266
This is very weird because it was working before. After a reinstall of the app however, I got the error above.
What is causing this?