So, i have admob added to my coronasdk app for ios and android. however, now when i run the app the artwork/device is displaying incorrectly? (the artwork and device are set for landscape) In addition, i get an error when trying to test on a device and when i try to use the coronasdk device simulator. has anyone had a similar issue any help would be AMAZING! really trying to finish this project
Your error message should be a very clear indication that something is busted in your build.settings. The build.settings is what controls your orientation.
You need to look at your terminal log to see if there are better descriptions of the error. Since you’re adding AdMob, and that requires a plugin, there is a good chance, that your added plugin code is incorrect.
Please see the following guides and tutorials:
Debugging:
http://docs.coronalabs.com/guide/basics/debugging/index.html
Build.settings guide:
http://docs.coronalabs.com/guide/distribution/buildSettings/index.html
Build.settings tutorial:
http://coronalabs.com/blog/2014/07/08/tutorial-understanding-build-settings/
Rob
Rob thank you for such a fast response and the links! i will look into this right away and post my findings.
thanks
ok so i reviewed the docs.This is what i have right now for my build.settings. However, I am still having the same issue with the app orientation displaying incorrectly.
settings =
{
orientation =
{
default = “landscapeRight”,
supported =
{
“landscapeLeft”, “landscapeRight”
},
},
plugins =
{
[“CoronaProvider.ads.admob”] =
{
publisherId = “com.coronalabs”,
supportedPlatforms = { iphone=true, android=true }
},
},
android =
{
versionCode = “1”
},
androidPermissions =
{
“android.permission.WRITE_EXTERNAL_STORAGE”,
“android.permission.RECORD_AUDIO”
“android.permission.INTERNET”,
“android.permission.ACCESS_NETWORK_STATE”,
},
iphone =
{
plist=
{
UIInterfaceOrientation = “UIInterfaceOrientationLandscapeRight”,
UISupportedInterfaceOrientations =
{
“UIInterfaceOrientationLandscapeLeft”,
“UIInterfaceOrientationLandscapeRight”
},
UIStatusBarHidden=true,
CFBundleIconFile = “Icon.png”,
CFBundleIconFiles = {
“Icon.png”,
“Icon@2x.png”,
“Icon-72.png”,
},
},
}
}
First, you don’t need this: supportedPlatforms = { iphone=true, android=true }
You only use that if you want to limit it to one or the other platform.
Secondly your “android” block has a syntax error in it. You close the block and then have a bunch of more code just floating loose. I would suggest using a text editor that will let you indent each curly brace level so you can see where they are supposed to line up.
Rob
Your error message should be a very clear indication that something is busted in your build.settings. The build.settings is what controls your orientation.
You need to look at your terminal log to see if there are better descriptions of the error. Since you’re adding AdMob, and that requires a plugin, there is a good chance, that your added plugin code is incorrect.
Please see the following guides and tutorials:
Debugging:
http://docs.coronalabs.com/guide/basics/debugging/index.html
Build.settings guide:
http://docs.coronalabs.com/guide/distribution/buildSettings/index.html
Build.settings tutorial:
http://coronalabs.com/blog/2014/07/08/tutorial-understanding-build-settings/
Rob
Rob thank you for such a fast response and the links! i will look into this right away and post my findings.
thanks
ok so i reviewed the docs.This is what i have right now for my build.settings. However, I am still having the same issue with the app orientation displaying incorrectly.
settings =
{
orientation =
{
default = “landscapeRight”,
supported =
{
“landscapeLeft”, “landscapeRight”
},
},
plugins =
{
[“CoronaProvider.ads.admob”] =
{
publisherId = “com.coronalabs”,
supportedPlatforms = { iphone=true, android=true }
},
},
android =
{
versionCode = “1”
},
androidPermissions =
{
“android.permission.WRITE_EXTERNAL_STORAGE”,
“android.permission.RECORD_AUDIO”
“android.permission.INTERNET”,
“android.permission.ACCESS_NETWORK_STATE”,
},
iphone =
{
plist=
{
UIInterfaceOrientation = “UIInterfaceOrientationLandscapeRight”,
UISupportedInterfaceOrientations =
{
“UIInterfaceOrientationLandscapeLeft”,
“UIInterfaceOrientationLandscapeRight”
},
UIStatusBarHidden=true,
CFBundleIconFile = “Icon.png”,
CFBundleIconFiles = {
“Icon.png”,
“Icon@2x.png”,
“Icon-72.png”,
},
},
}
}
First, you don’t need this: supportedPlatforms = { iphone=true, android=true }
You only use that if you want to limit it to one or the other platform.
Secondly your “android” block has a syntax error in it. You close the block and then have a bunch of more code just floating loose. I would suggest using a text editor that will let you indent each curly brace level so you can see where they are supposed to line up.
Rob