Hiccups with Android Studio build process - failed to load and execute main.lua

I’m using build 2890 and just using the App template without any modifications.  I’ve found that without explicitly performing a “Clean Project” before a run, I usually get the error:

06-03 10:20:34.363 13897-13931/com.mycompany.app I/Corona: This application failed to load and execute main.lua

06-03 10:20:34.365 13897-13931/com.mycompany.app A/libc: Fatal signal 11 (SIGSEGV), code 1, fault addr 0x8 in tid 13931 (GLThread 9595)

From the docs that would imply that either the cleanAssets or certifyBuild task isn’t running correctly, but it seems OK in the Gradle console.  I did turn off Instant Run as well as the “Skip installation if APK has not changed”

Has anyone else seen this issue?   Is it just Android Studio 2.1.x flakiness?

Executing tasks: [:app:assembleDebug]

Configuration on demand is an incubating feature.

Incremental java compilation is an incubating feature.

:app:cleanAssets

== cleanAssets ==

:app:compileLua

== compileLua ==

.

.

Compiling /Users/bob/dev/mobile/corona/TryLive/android/…/Corona/main.lua ===> main.lu

Creating application.metadata …

Archiving /Users/bob/dev/mobile/corona/TryLive/android/app/src/main/assets/*.lu into /Users/bob/dev/mobile/corona/TryLive/android/app/src/main/assets/resource.car

Removing: /Users/bob/dev/mobile/corona/TryLive/android/app/src/main/assets/*.lu

:app:copyCoronaResources UP-TO-DATE

:app:copyCoronaNativeLibs

== copyCoronaNativeLibs ==

:app:certifyBuild

== certifyBuild ==

59235a480711581bb27d06e0cad5d049   /Users/bob/dev/mobile/corona/TryLive/android/app/src/main/assets/resource.car

Replacing signature… done.

:app:preBuild

:app:preDebugBuild

:app:checkDebugManifest

:app:preReleaseBuild

:plugin:preBuild UP-TO-DATE

:plugin:preReleaseBuild UP-TO-DATE

:plugin:compileReleaseNdk UP-TO-DATE

:plugin:compileLint

:plugin:copyReleaseLint UP-TO-DATE

:plugin:mergeReleaseProguardFiles UP-TO-DATE

:plugin:packageReleaseRenderscript UP-TO-DATE

:plugin:checkReleaseManifest

:plugin:prepareReleaseDependencies

:plugin:compileReleaseRenderscript UP-TO-DATE

:plugin:generateReleaseResValues UP-TO-DATE

:plugin:generateReleaseResources UP-TO-DATE

:plugin:packageReleaseResources UP-TO-DATE

:plugin:exportPluginJar UP-TO-DATE

:plugin:compileReleaseAidl UP-TO-DATE

:plugin:generateReleaseBuildConfig UP-TO-DATE

:plugin:mergeReleaseShaders UP-TO-DATE

:plugin:compileReleaseShaders UP-TO-DATE

:plugin:generateReleaseAssets UP-TO-DATE

:plugin:mergeReleaseAssets UP-TO-DATE

:plugin:processReleaseManifest UP-TO-DATE

:plugin:processReleaseResources UP-TO-DATE

:plugin:generateReleaseSources UP-TO-DATE

:plugin:incrementalReleaseJavaCompilationSafeguard UP-TO-DATE

:plugin:compileReleaseJavaWithJavac UP-TO-DATE

:plugin:processReleaseJavaRes UP-TO-DATE

:plugin:transformResourcesWithMergeJavaResForRelease UP-TO-DATE

:plugin:transformClassesAndResourcesWithSyncLibJarsForRelease UP-TO-DATE

:plugin:mergeReleaseJniLibFolders UP-TO-DATE

:plugin:transformNative_libsWithMergeJniLibsForRelease UP-TO-DATE

:plugin:transformNative_libsWithSyncJniLibsForRelease UP-TO-DATE

:plugin:bundleRelease UP-TO-DATE

:app:prepareAndroidPluginUnspecifiedLibrary UP-TO-DATE

:app:prepareComAndroidSupportAnimatedVectorDrawable2340Library UP-TO-DATE

:app:prepareComAndroidSupportAppcompatV72340Library UP-TO-DATE

:app:prepareComAndroidSupportSupportV42340Library UP-TO-DATE

:app:prepareComAndroidSupportSupportVectorDrawable2340Library UP-TO-DATE

:app:prepareDebugDependencies

:app:compileDebugAidl UP-TO-DATE

:app:compileDebugRenderscript UP-TO-DATE

:app:generateDebugBuildConfig UP-TO-DATE

:app:mergeDebugShaders UP-TO-DATE

:app:compileDebugShaders UP-TO-DATE

:app:generateDebugAssets UP-TO-DATE

:app:mergeDebugAssets

:app:generateDebugResValues UP-TO-DATE

:app:generateDebugResources UP-TO-DATE

:app:mergeDebugResources UP-TO-DATE

:app:processDebugManifest UP-TO-DATE

:app:processDebugResources

:app:generateDebugSources

:app:incrementalDebugJavaCompilationSafeguard UP-TO-DATE

:app:compileDebugJavaWithJavac UP-TO-DATE

:app:compileDebugNdk UP-TO-DATE

:app:compileDebugSources UP-TO-DATE

:app:prePackageMarkerForDebug

:app:transformClassesWithDexForDebug UP-TO-DATE

:app:mergeDebugJniLibFolders UP-TO-DATE

:app:transformNative_libsWithMergeJniLibsForDebug UP-TO-DATE

:app:processDebugJavaRes UP-TO-DATE

:app:transformResourcesWithMergeJavaResForDebug UP-TO-DATE

:app:validateDebugSigning

:app:packageDebug

:app:zipalignDebug

:app:assembleDebug

BUILD SUCCESSFUL

Total time: 2.476 secs

Please add this line in build.gradle for the app, in the cleanAssets task:

delete "$projectDir/build/intermediates/jniLibs"

Please add this line in build.gradle for the app, in the cleanAssets task:

delete "$projectDir/build/intermediates/jniLibs"