for any other reference to this post,when you are using corona enterprise, make sure that drawable folder(with _corona_splash_screen.png in it) exists in android/res folder
It is tested and solved and works perfect now. Thanks for your excellent job.
Regards team !
Hi everybody, I’m having the same problem and it’s a bit annoying.
I have the splash screen control activated, Android native builds don’t have this problem. I tried updating to the latest build, deauthorize the computer, logout from simulator, etc etc but nothing worked.
I’m using build 3184 and I get this damn popup when I try to remove this annoying splashscreen (yes it’s annoying when your client is a big one and he doesn’t want to have anything to do with other branding)
What version of Corona was the template create in? It might be worth it to move to the new Native App templates and use them instead of older Enterprise templates.
EDIT to add: Engineering is going to see if there is an easier way…
Rob
Hi Rob,
Honestly, I am not sure but it from at least one year, before Corona Native. I tried the sample app that comes with Corona and I don’t get the popup if I delete the corona splash screen as with my app.
What changes can I do in xcode / corona to get the same result?
Thanks
So, migrating to the new template fixed ths issue with the popup. However, I am not getting a “attempt to index global ‘network’ (a nil value)”.
I am not overwriting this global object, I don’t have a network.lua file and this same code works perfectly with the previous template.
If I try to access the “audio” library, I don’t get this exception so it is somehow related to the network library.
I checked online and in the forums but didn’t find anything helpful.
I would suggest following:
-
adding simplest network.request into template app to see if it works at all for you
-
checking Other Linker Flags in Xcode’s Build settings to be same
Yup, tried with my old linker flags and it worked. I had to remove -lplayer and put "force_load “/Applications/CoronaEnterprise/Corona/ios/lib/libplayer.a”
Hi All,
What was the solution for this? I see Cesar mentioned it is solved. I’m getting this same ‘Application Validation Error - Incorrect Splash screen’ when I try to Run the /native/project template/app/android/ project sample. I’m hoping to use in order to build plugins.
I’m doing an android build with Android studio 2.3.3, and using daily build 3117 (since I couldn’t get it to work with daily build 3100).
Please let me know what to do.
Thanks so much,
John
This was fixed in 2017.3105, so you should not be seeing this.
Did you run the “Corona Setup Native.app” after updating to 3117?
If that doesn’t work, can you open a terminal program and change directory to the folder where your App folder is located and run:
ls -l App/android/plugin/src/main/res/drawable/
and copy/paste the results here?
Thanks
Rob
Hi Rob,
Thanks for the fast response. You’re right, I forgot to run that setup file (I ran it for my version 3100 but didn’t run it again when I upgraded to 3117). Sorry for the false alarm - my guess is that’s the issue. I haven’t been able to test again yet after running that setup file only because I’m having trouble getting the mac to recognize my android device, but I’m sure that’s a separate issue. I’ll post once I get that working.
By the way, is PC support for Corona Native coming anytime soon or is that just far into the future? I know it’s currently only available for Mac.
And Android 3rd party plugins are not yet supported in Corona Native, is that correct? I saw your post that it was worked out for iOS in Corona 3103 but that we should stay-tuned for Android. Are they expecting an Android fix in the next month or so by any chance? Just trying to plan timing for my next project… I have a current Android app I was hoping to add Corona Native features to, but the app is currently using several plugins such as External Storage, AdMob, etc, etc… so I’m out of luck till then?
Thank you again!!!
As far as PC support goes, we are discussing that vs. other big ticket items. I may know more soon on that. It’s definitely on our todo list.
Plugins for Android native builds is sort of in the same position Android native for PC’s is. We need to get it done.
Rob
Thanks Rob, I appreciate the response. So I guess my best bet is to make a plugin if I want to access Java code on Android? That should work or is there something I’m not thinking of? Thanks again!
I’m a bit confused. If you’re doing native now, you have access to a Mac. You can include native java in your project if you use Android Studio to build a native project instead of the simulator. You can also build a plugin and include the .jar file in your project if that’s more convenient. You still have to use native builds to use your own plugins.
Rob
Rob, sorry for my ignorance. You mentioned ‘You can also build a plugin and include the .jar file in your project if that’s more convenient’ m This is before submitting the plugin to Corona? Can you give us an example to how to do this?
I have developed a java file and can run native protect into Android Studio. But I can’t figure how to include the jar file to do the same. Must I compile the java file? Need some special tool? Can do this before submitting the plugin to Corona? You mentioned that, ones we have tested the plugin, we can submit it to Corona to have an special chance to test (only the developer). This jar file perhaps is this? or do you mean that can compile the jar file and use in another way? Always need the Android Studio even we use the jar file, correct? or there is another tool to compile the jar file?
Thanks so much again dear, and forgive my ignorance.
Best regards,
Are you building a plugin to submit to the marketplace? Or are you building your own app and need native functionality for it?
Dear Rob,
I’m just developing a plugin to submit to marketplace. It is more convenient for me to continue using Corona. In fact, the native code I only developing is the plugin itself for some missed function I need to use to my app.
In fact, I plan to develop some plugins. I prefer to use these plugins directly from Corona using the require statement.
Thanks again for your excellent support,
Hi, I followed all the steps to build the ProjectTemplate app folder in Android Studio… I’m getting close I think, but when I run the apk on a device, I get an “unfortunately, app template has stopped”. This is what’s in the logcat:
08-12 10:01:57.752 13810 13810 E AndroidRuntime: java.lang.RuntimeException: Unable to instantiate application com.mycompany.app.CoronaApplication: java.lang.ClassNotFoundException: Didn’t find class “com.mycompany.app.CoronaApplication” on path: DexPathList[[zip file “/data/app/com.mycompany.app-1/base.apk”],nativeLibraryDirectories=[/data/app/com.mycompany.app-1/lib/arm, /data/app/com.mycompany.app-1/base.apk!/lib/armeabi-v7a, /vendor/lib, /system/lib]]
Any ideas? The rest of the logcat around that time is in the attached txt file.
Thanks again for your help.
John
Did you try to add your own file or did you edit the existing one?
Rob
Hi Rob, Actually the only change I made was to add System.out.println(“in onLoaded”); in the CoronaApplication.java onLoaded method so that I could follow along how it processes. I’ll make a new copy of the /Project Template/App/ folder and try again with the clean copy. I’ll also try the ‘clean project’ feature in Android and see if that helps. From what I read online maybe this has to do with package names, but they seem to all be referenced ok (if I’m understanding them correctly anyway)
I’ll post here what happens when I try the above
Thanks again.