-
-
Notifications
You must be signed in to change notification settings - Fork 292
Description
Self help steps before reporting the issue:
[ ] Check Solar2D forums for a solution
[ ] If Android: make sure Java8 is installed and reported when running java -version
and javac -version
if not, download and install Java 8
Before reporting
Android build failed (256) after 11 seconds
Aug 17 11:36:46.585 ERROR: Build Failed: Error code: 256
Platforms involved
Building on: macOS Sonoma 14.5
Building for: Android
Attach your build.settings
settings = {
window =
{
--defaultMode = "fullscreen",
defaultMode = "normal",
defaultViewWidth = 360,
defaultViewHeight = 480,
titleText = {
default = "TROYIS™ - The Knight Challenge"
}
},
splashScreen =
{
enable = false
},
android =
{
versionName = "2.4.6",
versionCode = "310",
--googlePlayGamesAppId = "884218881470", -- TROYIS Google Play Game Services (España)
googlePlayGamesAppId = "1044276391152", -- TROYIS Google Play Game Services (Estonia)
-- 1044276391152-3abmdc8396soi9t4091fcq164g28slf7.apps.googleusercontent.com
facebookAppId = "217131015323350",
usesPermissions=
{
"android.permission.VIBRATE",
--"android.permission.READ_PHONE_STATE",
"android.permission.INTERNET", -- Para Facebook v4a
--"android.permission.WRITE_EXTERNAL_STORAGE", -- desactivado en init de appodeal
"android.permission.ACCESS_NETWORK_STATE", -- Vungle
"com.android.vending.BILLING", -- Compras
"com.android.vending.CHECK_LICENSE", -- Key de compras
"android.permission.ACCESS_WIFI_STATE",
"com.google.android.gms.permission.AD_ID",
--"android.permission.ACCESS_COARSE_LOCATION", -- opcional para appodeal ?
--"android.permission.ACCESS_FINE_LOCATION", -- opcional para appodeal ?
--"android.permission.GET_ACCOUNTS" -- opcional para appodeal
-- Hacer foto del record!!!!
},
usesFeatures =
{
{ name = "android.hardware.screen.portrait", required = false },
{ name = "android.hardware.screen.landscape", required = false },
},
supportsScreens =
{
smallScreens = true,
normalScreens = true,
largeScreens = true,
xlargeScreens = true,
},
applicationChildElements =
{
[[
<meta-data android:name="com.google.android.gms.ads.APPLICATION_ID"
android:value="ca-app-pub-1637719964938471~1524950722"/>
]],
},
},
plugins =
{
["plugin.facebook.v4a"] =
{
publisherId = "com.coronalabs"
},
--[[
-- Base
['plugin.appodeal.beta.base'] = { publisherId = 'com.coronalabs' },
['plugin.appodeal.beta.GoogleAdMob'] = { publisherId = 'com.coronalabs' },
--['plugin.appodeal.StartApp'] = { publisherId = 'com.coronalabs' },
]]
--["plugin.appodeal.GoogleAdMob"] = { publisherId = "com.coronalabs",},
--[[
-- IMPORTANTE: cargar con iOS
["CoronaProvider.gameNetwork.apple"] =
{
publisherId = "com.coronalabs",
supportedPlatforms = { iphone=true, ["iphone-sim"]=true },
},
]]
--[[ ]]
-- IMPORTANTE: Cargar para las versiones de ANDROID
["plugin.google.iap.billing.v2"] = {
publisherId = "com.solar2d",
},
--[[
-- IMPORTANTE: Cargar para las versiones de AMAZON
-- key is the name passed to Lua's 'require()'
["plugin.amazon.iap"] =
{
-- required
publisherId = "com.amazon",
},
]]
--[[
["plugin.vungle.v6"] =
{
publisherId = "com.solar2d"
},
-- ***** NECESARIA PARA GOOGLE PLAY SERVICES *****
-- PLUGIN GOOGLE PLAY GAMES SERVICES
["plugin.gpgs.v2"] = {
publisherId = "com.coronalabs",
supportedPlatforms = { ["android"] = true }
},
-- CON PROBLEMAS EN LA APP STORE
-- CREO QUE NO FUNCIONABA BIEN...
['plugin.vibrator'] =
{
publisherId = 'com.spiralcodestudio'
},
-- **********************
-- NO USADAS HACE TIEMPO
["plugin.google.play.services"] =
{
publisherId = "com.coronalabs",
supportedPlatforms = { android=true }
},
["CoronaProvider.native.popup.social"] =
{
publisherId = "com.coronalabs"
},
["plugin.fbAudienceNetwork"] =
{
publisherId = "com.coronalabs",
supportedPlatforms = { iphone=true, android=true }
},
-- key is the name passed to Lua's 'require()'
["CoronaProvider.gameNetwork.google"] =
{
-- required
publisherId = "com.coronalabs",
supportedPlatforms = { android = true }
},
]]
},
orientation =
{
default = "portrait",
supported =
{
"portrait", "portraitUpsideDown"
},
},
iphone =
{
xcassets = "Images.xcassets",
plist=
{
UILaunchStoryboardName = "LaunchScreen",
-- Intentando resolver warnging
UIRequiredDeviceCapabilities = {"location-services" },
NSLocationWhenInUseUsageDescription = "This app uses the GPS when active to determine where to report weather for.",
NSBluetoothAlwaysUsageDescription = "This app would like to access bluetooth.", NSLocationAlwaysUsageDescription = "This app would like to use location services.",
CFBundleIconFile = "Icon.png",
CFBundleVersion = "2.4.2",
UIStatusBarHidden= true,
ITSAppUsesNonExemptEncryption=false,
GADApplicationIdentifier = "ca-app-pub-1637719964938471~3735895686", -- identificador AdMob
-- UIApplicationExitsOnSuspend = false,
FacebookAppID = "217131015323350",
CFBundleURLTypes = {
{
CFBundleURLSchemes = { "fb217131015323350", }
}
},
-- Whitelist Facebook apps
LSApplicationQueriesSchemes =
{
"fb", -- Needed for the facebook-v4a.isFacebookAppEnabled() API
"fbapi",
"fbauth2",
"fb-messenger-api",
"fbshareextension"
},
-- Whitelist Facebook Servers for Network Requests
NSAppTransportSecurity =
{
NSAllowsArbitraryLoads = true,
--[[
NSExceptionDomains =
{
["troyis.com"] =
{
NSIncludesSubdomains = true,
NSThirdPartyExceptionAllowsInsecureHTTPLoads = true,
},
},
]]
},
UIPrerenderedIcon = "YES",
UIAppFonts= {
"KingthingsPetrock.ttf",
},
CFBundleLocalizations =
{
"English",
"Spanish",
"French",
"German",
"Italian",
"Portuguese",
"Polish",
"Dutch",
"Greek",
"Russian",
"Japanese",
"Korean",
"Arabic",
"Turkish",
"Chinese",
"zh-Hans",
"zh-Hant",
"en-US",
"es-419",
"es-ES",
"es-US",
"fr-FR",
"de-DE",
"it-IT",
"pt-BR",
"pt-PT",
"pl-PL",
"nl-NL",
"el-GR",
"ru-RU",
"ja-JP",
"ko-KR",
"ar",
"tr-TR",
"zh-CN",
"zh-TW",
},
},
},
}
Full build log
Enable full build log:
On macOS:
defaults write com.coronalabs.Corona_Simulator debugBuildProcess -int 5
On Windows:
reg ADD "HKEY_CURRENT_USER\Software\Ansca Corona\Corona Simulator\Preferences" /f /v debugBuildProcess /d 5
Before the build clean console and then copy log between backticks below
Using openjdk version "17.0.6" 2023-01-17
OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b829.9-10027231)
OpenJDK 64-Bit Server VM (build 17.0.6+0-17.0.6b829.9-10027231, mixed mode)
Aug 17 11:32:10.972 Picked up JAVA_TOOL_OPTIONS: -Duser.language=en
Aug 17 11:32:11.468 Warning:
Aug 17 11:32:11.468 The JKS keystore uses a proprietary format. It is recommended to migrate to PKCS12 which is an industry standard format using "keytool -importkeystore -srckeystore /Applications/Corona-3708/Corona Simulator.app/Contents/Resources/debug.keystore -destkeystore /Applications/Corona-3708/Corona Simulator.app/Contents/Resources/debug.keystore -deststoretype pkcs12".
Aug 17 11:36:23.895 Picked up JAVA_TOOL_OPTIONS: -Duser.language=en
Aug 17 11:36:24.376 Warning:
Aug 17 11:36:24.376 The JKS keystore uses a proprietary format. It is recommended to migrate to PKCS12 which is an industry standard format using "keytool -importkeystore -srckeystore /Users/guillemdesanpedro/Desktop/onlinegames-keystore.jks -destkeystore /Users/guillemdesanpedro/Desktop/onlinegames-keystore.jks -deststoretype pkcs12".
Aug 17 11:36:24.404 Testing credentials for '/Users/guillemdesanpedro/Desktop/onlinegames-keystore.jks':
Aug 17 11:36:24.431 Picked up JAVA_TOOL_OPTIONS: -Duser.language=en
Aug 17 11:36:25.536 jar signed.
Aug 17 11:36:25.536 Warning:
Aug 17 11:36:25.539 The signer's certificate is self-signed.
Aug 17 11:36:25.539
Aug 17 11:36:25.539 The timestamp will expire on 2031-11-09.
Aug 17 11:36:34.376 Using openjdk version "17.0.6" 2023-01-17
OpenJDK Runtime Environment (build 17.0.6+0-17.0.6b829.9-10027231)
OpenJDK 64-Bit Server VM (build 17.0.6+0-17.0.6b829.9-10027231, mixed mode)
Aug 17 11:36:37.328 BUILD SUCCESSFUL
Total time: 1 second
Aug 17 11:36:46.275 FAILURE: Build failed with an exception.
* What went wrong:
Could not resolve all artifacts for configuration 'classpath'.
> Could not find com.beust:klaxon:5.0.1.
Searched in the following locations:
- https://dl.google.com/dl/android/maven2/com/beust/klaxon/5.0.1/klaxon-5.0.1.pom
- https://jcenter.bintray.com/com/beust/klaxon/5.0.1/klaxon-5.0.1.pom
Required by:
unspecified:unspecified:unspecified
* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.
> Get more help at https://help.gradle.org.
BUILD FAILED in 7s
Aug 17 11:36:46.294 Android build failed (256) after 11 seconds
Aug 17 11:36:46.585 ERROR: Build Failed: Error code: 256