ReferenceError: Can't find variable: angular - error on android 2.3.3

I test my app on android 4 and 5 and it works well. When running it on android 2.3.3 I get the error

D/CordovaLog( 1233): file:///android_asset/www/js/directives.js: Line 2 : ReferenceError: Can’t find variable: angular
E/Web Console( 1233): ReferenceError: Can’t find variable: angular at file:///android_asset/www/js/directives.js:2

and directives.js 2 line is:
var directives = angular.module(‘directives’, []);

so it seems as if angular did not load.

I am debbuging it right now but if someone with more in depth knowladge of ionnic/cordova could provide some suggestions that would certenly help me a lot :wink:

I include lib/ionic/js/ionic.bundle.js before my custom *.js files. But it doesnt load angular

anyone? this seems like framework issue

i had the same issue and when, there is no solution for yhie problem ionic apps work on 4.x.x version or more
know more with this follow discussion:

Haha thanks, I wasted some time on this issue. I did know ionic is for 4 > android but it completly slipped my mind as I started testing, Thanks a lot :slight_smile:

1 Like

excuse my terrible english