Error: Template not Found. Older Build: 2014.2223

Just got a rejection notice from Barnes & Noble:

Unfortunately we are not able to approve your application for
distribution at this time for the following reasons:

Files: Rejected: Test Case #3

  • The application will not install on NOOK Color due to the fact that
    NOOK Color is FROYO (SDK 8) while NOOK Tablet is based off GB (SDK 10)
    and NOOK HD/HD+ devices are ICS (SDK 15). Please downgrade to SDK 8 in
    order for the application to be able to install on all NOOK devices. If
    you need more clarification please open a ticket.

Failed on the following device(s):

NOOK Color (Froyo) 1.4 [x]
NOOK Tablet (Gingerbread) 1.4.1 []
NOOK HD+ (Ice Cream Sandwich) 2.0 []
NOOK HD (Ice Cream Sandwich) 2.0 []
Samsung Galaxy Tab 4 NOOK 7.0 (KitKat) 4.4 []
Samsung Galaxy Tab 4 NOOK 10.1 (KitKat) 4.4 []

Results: The application fails to install onto the NOOK Color due to an
older SDK.

You have to use build 2014.2263 or earlier, but currently the build server is not working for that build, so your only option is to wait until it gets fixed if you want to support the Nook Color. Or, you can deselect Nook Color on B&N’s website. In my own experience, however, it’s better to suppor the Nook Color because there are a ton of those devices floating around out there. When I stopped supporting Nook Color, my downloads on B&N went down by over 50%.

The engineers that work on the build servers  are on a higher priority project at the moment.   We know this is important to you and will get to it as soon as we get the time for them to work on it.

Rob

I just wish that there is a resolution for this issue ASAP. my user base for Nook color is screaming at me.

Clearly you guys at Corona are not taking this particular issue seriously enough. When this Template not Found problem occured, it broke older versions of Builds. With your version control software system, you should be able to find what caused this problem without too much difficulty.

This Corona BUG/ERROR wiped out Nook Color and millions of Android phones still running 2.2 - this is terrible because the majority of international users cannot afford newer phones - if your developers actually care, prove it and fix this.

The law of large numbers can tell you that for every complaint you have here online, there are likely 100 times more developers upset about the issue that may be leaving Corona to insure backward compatibility. I love Corona and would hate to leave because of a refusal to insure compatibility will potentially millions of older phones.

If your company doesn’t care enough to do something about this now, whose to say that in 2 years you wont abandon support for today’s version of Android? Please, just do the right thing and fix this problem which makes it impossible for us to compile with older builds - making them useless.

Thank you for your consideration.

As of yesterday afternoon, the engineers solved the build problem.  You need to use 2263.  Now this will only work for Windows and OS-X Mavericks 10.9.4 and earlier.  If you are using Yosemite or Mavericks 10.9.5 or later, Apple changed how apps are signed and that old build will likely cause OS-X 10.9.5 or later refuse to run Corona SDK.  Engineering is trying to add a feature that would let you work around this limitation, but for now if you’re on WIndows or on an older Mac you should be good to go.

Rob

Thank you Rob and Corona team for fixing this issue, I was able to compile for android 2.2, and submitted the update to B&N, let’s see how it goes.

Thank you for fixing this

NOT SO FAST.

Although I can now complete my build with v2263, “AND” I AM able to install the APK onto my Android 2.3.4 device, (ATT LGP505), the problem is that when I run it, I get the message, “The application xxxxxxx has stopped unexpectedly. Please try again.”   (xxxxxxx = app name)

To verify the problem wasn’t my code, I grabbed the super simple project from the Corona Code Exchange in “Templates” called “Simple Grid System” and it, too, DOES NOT WORK. So, I have included the following super-short code (build.settings, config.lua, main.lua) BELOW in hopes that someone can tell me why this doesn’t work.

BUILD.SETTINGS

settings = {
    orientation = {
        default = “portrait”,
        supported = { “portrait”, }
    },
    iphone = {
        plist = {
            UIStatusBarHidden = false,
            UIPrerenderedIcon = true, – set to false for “shine” overlay

        }
    },

}

CONFIG.LUA

application = {
    content = {
        width = 320,
        height = 480,
        scale = “letterBox”,
        fps = 30,

    },

}

MAIN.LUA

– Screen size
local screenW, screenH, halfW, halfH = display.viewableContentWidth, display.viewableContentHeight, display.viewableContentWidth*0.5, display.viewableContentHeight*0.5
 
– Grid
numberOfColumns = 16
columnWidth = math.floor( screenW / numberOfColumns )        
function getColumnPosition( columnNumber )
    return (columnNumber - 1) * columnWidth
end
function getColumnWidth( numberOfColumns )
    return numberOfColumns * columnWidth
end    
 
– Loop columns
for i = 1, numberOfColumns do
    – Loop thru records
    for y = 1, 26 do
        – Set column and row
        local column = i
        local row = y * 20 - 20
 
        – Set text of label
        local text = i
        if i < 10 then
            text = ‘0’ … text
        end
        
        – Add newText
        local options =
        {
            text = text,
            x = getColumnPosition(column),
            y = row,
            width = getColumnWidth(column+1),
            fontSize = 14,
            align = “left”
        }
        local label1 = display.newText( options )
        label1.anchorX = 0
        label1.anchorY = 0
    end
end

PLEASE HELP ME SOLVE THIS PROBLEM FOR ANDROID 2.2 OR 2.3.3.

after more work, I have figured out that the problem is likely in either config.lua or build.settings, since the main.lua file now has only 3 lines.

MAIN.LUA

local label1 = display.newText( “THIS IS A TEST”,0,0,native.systemFont,24)
label1.anchorX=0
label1.anchorY=0

CONFIG.LUA

application = {
    content = {
        fps = 30,
    },
}
 

BUILD.SETTINGS

settings = {
    orientation = {
        default = “portrait”,
        supported = { “portrait”, }
    },
    android =
    {
        versionCode = “1”,
    },
}

My suggestion would be to use one of our sample apps in SampleCode like hello world and see if that has the same issue.

Rob

Is there a way to tell the manifest, that  the app is compatible with platform 2.2 ? even if it was compiled for 2.3 ?

The reason I’m asking this, is because I’m able to install the app to Nook color with platform 2.3.3 through an ADB install.

THIS FIX APPEARS TO ALLOW THE COMPILE TO FINISH, BUT I STILL CAN’T GET ANYTHING TO RUN ON MY ANDROID 2.3.4 - even a short 3 ilne Hello World project.

Hi Rob,

Okay, based upon your suggestion, I have removed the build.settings file and the config.lua file. Now, all I have is a main.lua file with the following 3 lines of code.

     print( “Hello World!” )
     local myTextObject = display.newText( “Hello World!”, 50, 50, “Arial”, 60 )
     myTextObject.anchorX=0

This works perfectly on my HTC One X - Android 4.1.1, but not even the PRINT(“Hello World!”) works from my ATT LGP505 Android 2.3.4 device. I am using ADB to see console messages just fine on the HTC One X. Here are the results on the Android 4.1.1 from using “adb logcat Corona:v *:s”

    V/Corona ( 6543): > Class.forName: network.LuaLoader

    V/Corona ( 6543): < Class.forName: network.LuaLoader

    V/Corona ( 6543): Loading via reflection: network.LuaLoader

    I/Corona ( 6543): Platform: HTC One X / ARM Neon / 4.1.1 / Adreno ™ 225 / OpenGL ES 2.0 V@4.1 AU@ (CL@2814726)

    I/Corona ( 6543): Hello World!

I am using the ADB on the Android 2.3.4 device to do the following:

    adb shell rm /sdcard/tmp/test.apk --this removes the previous apk

    adb install -s e:\CoronaLabs\test.apk  --this installs the apk (appears to work fine - I can see the Corona logo on App named “test”

    adb logcat Corona:v *:s --nothing ever comes to the log file from the device

ADB appears to work just fine on my Android 2.3.4, its just that the Hello World project doesn’t work.

Here are more details:

    On the Android 2.3.4 ATT LGP505, I have an SD card in it and it seems to work great - good network connectivity, pulls down my gmail fine. I have Setttings -> Applications -> Unknown Sources checked and Settings -> Applications -> Development, I have USB debugging checked. As I said, it appears to install the APK just fine - can see the Corona logo on App named “test”

    Another point worth mentioning is that I am doing the Corona build from Lua Glider 2.0, but that shouldn’t matter right, because the actual APK is put together by the Corona Simulator -> File -> Build, right?

I wonder whats happeing TroyLyndon, I installed mine on Nook color ( android 2.2 ) , Redmi note with 4.4.2,  and Kindle Fire HD 2nd gen 4.2.2 with no issues.

No.  It’s not just the manifest, it would actually need to support Android 2.2 to work.

Rob

Please humor me, and build our Hello World sample app “as is” using Corona Simulator (bypassing Glider) and use adb install to install it.  Use “adb logcat” without anything else to look for messages from all related activites.   when you do “adb logcat Corona:v *:s” you only get messages from the Corona activity and could be missing very important other messages.

Rob

Ok Thanks Rob, I’ll just wait for this issue to be fixed. I hope soon, my Nook color users are waiting for my app update.

Hi Rob,

Happy Easter!

I have now run done as you have asked from Corona Editor within Sublime Text 3. The result was the same, “Sorry - the application test (process com.gmail.troylyndon.test)  has stopped unexpectedly. Please try again.”

From the command prompt I entered “adb logcat >logcat.txt” to save the log for you to see. The following I believe is the most relevant part of the log, as I grabbed log entries beginning with the name of the app “com.gmail.troylyndon.test” - but if you want to see the entire log, go to http://www.rdgames.us/log.txt

Here is what I think is the most relevant part of the log:

    D/VoldCmdListener( 1464): asec path com.gmail.troylyndon.test-1
    I/PackageManager( 1561): <!>com.android.server.PackageManagerService$SdInstallArgs 5471<!> Succesfully renamed smdl2tmp1 to com.gmail.troylyndon.test-1 at new path: /mnt/asec/com.gmail.troylyndon.test-1
     D/PackageManager( 1561): <!>com.android.server.PackageManagerService 3003<!> Scanning package com.gmail.troylyndon.test
     I/PackageManager( 1561): Linking native library dir for /mnt/asec/com.gmail.troylyndon.test-1/pkg.apk
     D/StatusBarPolicy( 1644): <!>com.android.systemui.statusbar.policy.StatusBarPolicy 1331<!> [BRIGHTHY] asu=-63 iconLevel=5,  asu_Ecio=-4 iconLevel_ecio=5
     D/StatusBarPolicy( 1644): [BRIGHTHY] curNetwork= curHPLMN=
     I/WifiStateTracker( 1561): <!>android.net.wifi.WifiStateTracker 1306<!> [WifiStateTracker] handleMessage EVENT_POLL_INTERVAL
     D/PackageManager( 1561): <!>com.android.server.PackageManagerService 3529<!> Registered content provider: com.gmail.troylyndon.test.files, className = com.ansca.corona.storage.FileContentProvider, isSyncable = false
     D/PackageManager( 1561): <!>com.android.server.PackageManagerService 3552<!>   Providers: com.ansca.corona.storage.FileContentProvider
     D/PackageManager( 1561): <!>com.android.server.PackageManagerService 3572<!>   Services: com.ansca.corona.CoronaService
     D/PackageManager( 1561): <!>com.android.server.PackageManagerService 3592<!>   Receivers: com.ansca.corona.SystemStartupBroadcastReceiver com.ansca.corona.notifications.AlarmManagerBroadcastReceiver com.ansca.corona.notifications.StatusBarBroadcastReceiver com.ansca.corona.notifications.GoogleCloudMessagingBroadcastReceiver com.ansca.corona.purchasing.GoogleStoreBroadcastReceiver
     D/PackageManager( 1561): <!>com.android.server.PackageManagerService 3612<!>   Activities: com.ansca.corona.CoronaActivity com.ansca.corona.CameraActivity com.ansca.corona.VideoActivity com.ansca.corona.purchasing.StoreActivity com.facebook.LoginActivity com.ansca.corona.facebook.FacebookFragmentActivity
     I/ActivityManager( 1561): Force stopping package com.gmail.troylyndon.test uid=10075

One more thing worth mentioning are my settings when making a build - which you can see at http://www.rdgames.us/buildSetup.jpg - you will notice that my AppStore setting is None.

Thanks for your help.

Very kindly,

Troy

I took HelloWorld and built it with the Standalone Corona Simulator. I built both once with Nook as the selected store, one with it set to none.  I sideloaded the .apk file onto my Nook Color and it worked as expected (after I had to renable the device for development, my 120 days was up). 

Before I can take this to Engineering, I’ll need to know:

what build of corona you’re using? 

What version of the operating system are you using? 

What device are you using to test this on? 

What command are you using to sideload the app?

Thanks

Rob

Hi Rob, Working on Easter? I am very grateful for your dedication to helping us. Forona/Fuse is very fortunate to have you. what build of corona you’re using? V2263 What version of the operating system are you using? Windows 7 Professional What device are you using to test this on? ATT LG P505 - Android 2.3.4 What command are you using to sideload the app? adb install -s test.apk