:CordovaLib:compileDebugJavaWithJavacNote: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
:compileDebugJavaWithJavacNote: G:\dev\vericert\testapp3\platforms\android\src\org\apache\cordova\splashscreen\SplashScreen.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
If you $ ionic build android again, you dont see these errors anymore but even default splash screens does not work. Its blank.
If you want to see these messages again, just do;
$ ionic state reset
It will remove platform and plugins folders and build them again using package.json. then do;
$ ionic build android
and you will see these messages again.
So what i’m doing wrong?
1 - Yes my java home env variable is setted,
2 - Yes i put icon.png and splash.png just like in described and do $ ionic resources command to build them automatically. (btw it should show default if i dont do these, its not showing default either)
I’m just talking about creating new app with default template and it gives an error while building and does not show default splash screens.
Yes, my splash screen with default “cordova-plugin-splashscreen” written in package.json when i “ionic start myapp tabs” does not work. Its just blank screen.
I didn’t get it when you said cordova folks. The warning said SplashScreen and i thought its related about this warning.
Anyway, i just replace that line “cordova-plugin-splashscreen” in the package.json with “org.apache.cordova.splashscreen” then “ionic state reset” and its start working. I don’t know what is the difference between these 2 plugin. Default one is new and the mine is old i guess.
If i don’t have any other problem with my building platform which is windows, Ionic version 1.7.14 cordova version 6.0.0 npm version 3.7.2 node version v4.3.0, you can easily reproduce the problem. Just create a new project with;
ionic start myapp tabs
cd myapp
ionic platform add android
put icon.png and splash.png in resource folder (i get these images from your blog post :http://blog.ionic.io/automating-icons-and-splash-screens/ and edit them with photoshop and save them as png file.)
ionic resources
ionic emulate android
Its just blank screen.
Also, in case my emulator have some problem with this i install this test project using adb to my mobile. Its also blank splash screen.
projectName\platforms\android\res -> (I used android) change all screen png with the ones generated by ionic resources --splash in the ProjectName\resources\android\splash and then Build. Works like magic to me