I installed Java 7 32 Bit, but whenever I try to buil, I still get the message "Cannot Find the Java Development Kit (JDK)…
How do I tell Corona were the JDK is?
I installed Java 7 32 Bit, but whenever I try to buil, I still get the message "Cannot Find the Java Development Kit (JDK)…
How do I tell Corona were the JDK is?
Positive, version jdk1.7.0_79 in the Program files(x86)directory.
If you want an advice uninstal ur java 1.7 and install java 1.6 because with 1.7 and higher the apps cant be install on device with android 4.2 and below.
Have you try to reboot your computer
Already tried installing other versions. No matter what I do, Corona says It cant find the jdk? Would hate to have to abandon Corona, but cant get out of the gate here. How does Corona look for the jdk to begin with?
I think it is because Corona cannot find your Java PATH. Did you set up the path?
Admin note: please only ask your question once.
Rob
Has any had a similar runtime error message that I keep getting when they try and build for Android, here the error message:
Runtime Error / users/liamyoung/Desktop/Water JettersGame/Water Jetters/storyboard.lua:1642:java.lang.NoClassDefFoundError:Failed resolution of:Lcom/ansca/corona/permissions/PermissionsServices;
Here my build setting:
settings = { orientation = { default = "landscapeRight", content = "landscapeRight", supported = { "landscapeRight", "landscapeLeft" }, }, plugins = { ["plugin.google.play.services"] = { publisherId = "com.coronalabs", supportedPlatforms = { android=true } }, ["CoronaProvider.gameNetwork.google"] = { publisherId = "com.coronalabs", supportedPlatforms = { android = true }, }, ["plugin.facebook.v4"] = { publisherId = "com.coronalabs" }, -- @schroederapps' Twitter plugin: ["plugin.twitter"] = { publisherId = "com.jasonschroeder", }, ["plugin.applovin"] = { publisherId = "com.coronalabs", supportedPlatforms = { iphone=true, android=true, appletvos=true } }, }, android = { googlePlayGamesAppId = "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAntdxSjbF0RsicL+xTDfYXx8f21oVzOBLwNgJvRYpf1XzuBl24GZTghnujsD3NZPdfxd4Odlprn9wkmhGyoIyTtsRZeJuysngGqddB/FH1DCh8mBjzhnbW6d/W8+q36iiOAdaYJmM+X5ePZMp40VBRJHnK03laaSGJAa9RS32NzLHp4txiTzjNaRICws+Rv5y4SxJF8RgjeEJdXTV3GAdMYzJ7ahB3U1gFeGDwZVGf2cmJnWJiIDZbDFtJepGlAo8Wjpx2cYbw46zZRC2ibXAYtoF2EuL+PVD/KawAPAvMyFkgaUw/Z11Eh3Yi2/8vkbHlvpOB8XRnSFS8AFCWb7ODwIDAQAB", --insert your app id number for google game services versionCode = 10, usesPermissions = { "android.permission.VIBRATE", "android.permission.INTERNET", "android.permission.ACCESS\_NETWORK\_STATE", "android.permission.READ\_PHONE\_STATE", "android.permission.WRITE\_EXTERNAL\_STORAGE" --"com.android.vending.CHECK\_LICENSE", --"com.android.vending.BILLING" }, facebookAppId = "XXXXXXXXX", -- Replace XXXXXXXXXX with your Facebook App ID largeHeap = true }, iphone = { plist = { CFBundleName = "Water Jetters", CFBundleIconFile = "Icon.png", CFBundleIconFiles = { "Icon.png", "Icon@2x.png", "Icon-60.png", "Icon-60@2x.png", "Icon-72.png", "Icon-72@2x.png", "Icon-76.png", "Icon-76@2x.png", -- "Icon-Small.png", -- "Icon-Small@2x.png", -- "Icon-Small-40.png", -- "Icon-Small-40@2x.png", -- "Icon-Small-50.png", -- "Icon-Small-50@2x.png", }, UIApplicationExitsOnSuspend = false, -- must be false for single sign-on to work FacebookAppID = "XXXXXXXXX", -- replace XXXXXXXXX with your facebook appId CFBundleURLTypes = { { CFBundleURLSchemes = { "XXXXXXXXX", -- replace XXXXXXXXX with your facebook appId, make sure that you leave fb in front of it } } }, -- Whitelist Facebook Servers for Network Requests NSAppTransportSecurity = { NSExceptionDomains = { ["fbcdn.net"] = { NSIncludesSubdomains = true, NSExceptionRequiresForwardSecrecy = false, }, ["facebook.com"] = { NSIncludesSubdomains = true, NSExceptionRequiresForwardSecrecy = false, }, ["akamaihd.net"] = { NSIncludesSubdomains = true, NSExceptionRequiresForwardSecrecy = false, }, }, }, -- Whitelist Facebook Apps LSApplicationQueriesSchemes = { "fb", "fbapi20130214", "fbapi20130410", "fbapi20140410", "fbapi20140116", "fbapi20150313", "fbapi20150629", "fbauth", "fbauth2", "fb-messenger-api20140430", }, NSAppTransportSecurity = { NSAllowsArbitraryLoads=true }, } } }
Unfortunately I can’t say if it the setting I’ve got are wrong, the ID key wrong or the version of something I’m using is out of date or to do with licenses which seem to be new, which I’ve not added as i just want to test the app, there no billing in place at the moment and I don’t believe it relevant at this stage. Please can anyone help?
Many thanks
Liam
That error can’t come from line 1642 of storyboard.lua. It’s just an “end” statement. However the line before it is throwing an error message when we try to go to a scene and there is a problem in the scene you are trying to goto. There should be more information in your console log as to what’s going on.
The error has something to do with permissions too, but there isn’t much going on. Is it failing during the build process? Does it fail if you try and build for iOS?
Are you using all the .lua files in your project? The build process will attempt to build every .lua file it finds. Sometimes you will be fine in the simulator and go to build the project and a file that you’ve not been using has an error in it and it boots the build process.
Now if this is failing after installing it to a device, we need to know more:
What Device?
What OS is on the Device?
What version of Corona SDK are you using?
Finally, you are using Storyboard, not its newer, more modern brother Composer. Storyboard hasn’t been supported for a while. If this turns out to be an Android permission problem brought on by Android 6, we won’t be going back and fixing Storyboard.
Rob
Hi Rob, It doesn’t fail during the build process or when running the simulator. It also builds fine for the IOS its just when installing the app onto a Android device and then running the program. Its only then for some reason it throws the above runtime error. The Android devices I have tried to test the app with are Sony Xperia z3 which uses Android 6 and Samsung Galaxy s5 that runs on Android 5. The version of Corona I’m using is v2015.2731.
I think it probably a setting problem, I’ve not had any previous problem testing apps on the above devices but i could be wrong. I was thinking though that maybe the problem its having with that particular scene is in that scene its trying to load plugins to twitter and Facebook v4. This it does fine on a IOS device however I thinking maybe its causing a problem with permissions with the app loaded onto a Android device?
In terms of .lua files, I’ve had a look and I can’t see any that I don’t really use other then oauth.lua and networksLib.lua, the oauth I figure is working behind the scenes encrypting Url calls etc and is added with each project. As for networksLib it looks like it was also automatically added to the project for logging into gameNetwork for google? I’m not really using it at the moment but I’ll will probably need this though at a later date when wanting to access leaderboard etc. Thanks for all your help Rob, really appreciate it. I’m sure it something simple but its just locating it though to fix. Many thanks
Liam Young
Android 6 changed how permissions work. You really need to be using 2830 or later if you want your apps to work well on Android 6. I would start there and then we can reassess the issue.
Rob
Positive, version jdk1.7.0_79 in the Program files(x86)directory.
If you want an advice uninstal ur java 1.7 and install java 1.6 because with 1.7 and higher the apps cant be install on device with android 4.2 and below.
Have you try to reboot your computer
Already tried installing other versions. No matter what I do, Corona says It cant find the jdk? Would hate to have to abandon Corona, but cant get out of the gate here. How does Corona look for the jdk to begin with?
I think it is because Corona cannot find your Java PATH. Did you set up the path?
Admin note: please only ask your question once.
Rob
Has any had a similar runtime error message that I keep getting when they try and build for Android, here the error message:
Runtime Error / users/liamyoung/Desktop/Water JettersGame/Water Jetters/storyboard.lua:1642:java.lang.NoClassDefFoundError:Failed resolution of:Lcom/ansca/corona/permissions/PermissionsServices;
Here my build setting:
settings = { orientation = { default = "landscapeRight", content = "landscapeRight", supported = { "landscapeRight", "landscapeLeft" }, }, plugins = { ["plugin.google.play.services"] = { publisherId = "com.coronalabs", supportedPlatforms = { android=true } }, ["CoronaProvider.gameNetwork.google"] = { publisherId = "com.coronalabs", supportedPlatforms = { android = true }, }, ["plugin.facebook.v4"] = { publisherId = "com.coronalabs" }, -- @schroederapps' Twitter plugin: ["plugin.twitter"] = { publisherId = "com.jasonschroeder", }, ["plugin.applovin"] = { publisherId = "com.coronalabs", supportedPlatforms = { iphone=true, android=true, appletvos=true } }, }, android = { googlePlayGamesAppId = "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAntdxSjbF0RsicL+xTDfYXx8f21oVzOBLwNgJvRYpf1XzuBl24GZTghnujsD3NZPdfxd4Odlprn9wkmhGyoIyTtsRZeJuysngGqddB/FH1DCh8mBjzhnbW6d/W8+q36iiOAdaYJmM+X5ePZMp40VBRJHnK03laaSGJAa9RS32NzLHp4txiTzjNaRICws+Rv5y4SxJF8RgjeEJdXTV3GAdMYzJ7ahB3U1gFeGDwZVGf2cmJnWJiIDZbDFtJepGlAo8Wjpx2cYbw46zZRC2ibXAYtoF2EuL+PVD/KawAPAvMyFkgaUw/Z11Eh3Yi2/8vkbHlvpOB8XRnSFS8AFCWb7ODwIDAQAB", --insert your app id number for google game services versionCode = 10, usesPermissions = { "android.permission.VIBRATE", "android.permission.INTERNET", "android.permission.ACCESS\_NETWORK\_STATE", "android.permission.READ\_PHONE\_STATE", "android.permission.WRITE\_EXTERNAL\_STORAGE" --"com.android.vending.CHECK\_LICENSE", --"com.android.vending.BILLING" }, facebookAppId = "XXXXXXXXX", -- Replace XXXXXXXXXX with your Facebook App ID largeHeap = true }, iphone = { plist = { CFBundleName = "Water Jetters", CFBundleIconFile = "Icon.png", CFBundleIconFiles = { "Icon.png", "Icon@2x.png", "Icon-60.png", "Icon-60@2x.png", "Icon-72.png", "Icon-72@2x.png", "Icon-76.png", "Icon-76@2x.png", -- "Icon-Small.png", -- "Icon-Small@2x.png", -- "Icon-Small-40.png", -- "Icon-Small-40@2x.png", -- "Icon-Small-50.png", -- "Icon-Small-50@2x.png", }, UIApplicationExitsOnSuspend = false, -- must be false for single sign-on to work FacebookAppID = "XXXXXXXXX", -- replace XXXXXXXXX with your facebook appId CFBundleURLTypes = { { CFBundleURLSchemes = { "XXXXXXXXX", -- replace XXXXXXXXX with your facebook appId, make sure that you leave fb in front of it } } }, -- Whitelist Facebook Servers for Network Requests NSAppTransportSecurity = { NSExceptionDomains = { ["fbcdn.net"] = { NSIncludesSubdomains = true, NSExceptionRequiresForwardSecrecy = false, }, ["facebook.com"] = { NSIncludesSubdomains = true, NSExceptionRequiresForwardSecrecy = false, }, ["akamaihd.net"] = { NSIncludesSubdomains = true, NSExceptionRequiresForwardSecrecy = false, }, }, }, -- Whitelist Facebook Apps LSApplicationQueriesSchemes = { "fb", "fbapi20130214", "fbapi20130410", "fbapi20140410", "fbapi20140116", "fbapi20150313", "fbapi20150629", "fbauth", "fbauth2", "fb-messenger-api20140430", }, NSAppTransportSecurity = { NSAllowsArbitraryLoads=true }, } } }
Unfortunately I can’t say if it the setting I’ve got are wrong, the ID key wrong or the version of something I’m using is out of date or to do with licenses which seem to be new, which I’ve not added as i just want to test the app, there no billing in place at the moment and I don’t believe it relevant at this stage. Please can anyone help?
Many thanks
Liam
That error can’t come from line 1642 of storyboard.lua. It’s just an “end” statement. However the line before it is throwing an error message when we try to go to a scene and there is a problem in the scene you are trying to goto. There should be more information in your console log as to what’s going on.
The error has something to do with permissions too, but there isn’t much going on. Is it failing during the build process? Does it fail if you try and build for iOS?
Are you using all the .lua files in your project? The build process will attempt to build every .lua file it finds. Sometimes you will be fine in the simulator and go to build the project and a file that you’ve not been using has an error in it and it boots the build process.
Now if this is failing after installing it to a device, we need to know more:
What Device?
What OS is on the Device?
What version of Corona SDK are you using?
Finally, you are using Storyboard, not its newer, more modern brother Composer. Storyboard hasn’t been supported for a while. If this turns out to be an Android permission problem brought on by Android 6, we won’t be going back and fixing Storyboard.
Rob
Hi Rob, It doesn’t fail during the build process or when running the simulator. It also builds fine for the IOS its just when installing the app onto a Android device and then running the program. Its only then for some reason it throws the above runtime error. The Android devices I have tried to test the app with are Sony Xperia z3 which uses Android 6 and Samsung Galaxy s5 that runs on Android 5. The version of Corona I’m using is v2015.2731.
I think it probably a setting problem, I’ve not had any previous problem testing apps on the above devices but i could be wrong. I was thinking though that maybe the problem its having with that particular scene is in that scene its trying to load plugins to twitter and Facebook v4. This it does fine on a IOS device however I thinking maybe its causing a problem with permissions with the app loaded onto a Android device?
In terms of .lua files, I’ve had a look and I can’t see any that I don’t really use other then oauth.lua and networksLib.lua, the oauth I figure is working behind the scenes encrypting Url calls etc and is added with each project. As for networksLib it looks like it was also automatically added to the project for logging into gameNetwork for google? I’m not really using it at the moment but I’ll will probably need this though at a later date when wanting to access leaderboard etc. Thanks for all your help Rob, really appreciate it. I’m sure it something simple but its just locating it though to fix. Many thanks
Liam Young