• Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!
  • Hello [name]! Thanks for joining the GMC. Before making any posts in the Tech Support forum, can we suggest you read the forum rules? These are simple guidelines that we ask you to follow so that you can get the best help possible for your issue.

Android export Lint errors

Hi all,

Decided to get back into GM after a couple years. Set up the JDK, SDK and NDK etc, keystore whatnot successfully according to the test buttons in preferences.

I however, cannot seem to get a successful compile. The errors I get are about Lint it seems. I have the output html listed below for your helpful eyes.

Code:
LintError: Lint Failure
../../../com.companyname.Side_Planes: Can't find API database; API check not performed
Priority: 10 / 10
Category: Lint
Severity: Error
Explanation: Lint Failure.
This issue type represents a problem running lint itself. Examples include failure to find bytecode for source files (which means certain detectors could not be run), parsing errors in lint configuration files, etc.
These errors are not errors in your own code, but they are shown to make it clear that some checks were not completed.

More info:

To suppress this error, use the issue id "LintError" as explained in the Suppressing Warnings and Errors section.
This is the last few lines to do with Lint in the GM terminal.

Code:
:com.companyname.Side_Planes:lint
Ran lint on variant release: 57 issues found
Ran lint on variant debug: 57 issues found
Wrote HTML report to file:///W:/com.companyname.Side_Planes/build/outputs/lint-results-debug.html
Wrote XML report to file:///W:/com.companyname.Side_Planes/build/outputs/lint-results-debug.xml
:com.companyname.Side_Planes:lint FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':com.companyname.Side_Planes:lint'.
> Lint found errors in the project; aborting build.

Fix the issues identified by lint, or add the following to your build script to proceed with errors:
...
android {
    lintOptions {
        abortOnError false
    }
}
...

* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

BUILD FAILED

Total time: 31.812 secs
cmd /c "subst /d W:"

Lint Build report available at C:\Users\lukeh\Documents\GameMaker\Cache\Side_Planes\Android\Default\com.companyname.Side_Planes\build\outputs\lint-results.html
Create finished: 12:28:22 AM
I've tried rolling back SDK and JDK versions, tried multiple Android versions in Android Studio, been online the last 3 hours googling and checking forums for various assistance, of which I have reached a point of existential tiredness and am going to sleep on the problem.

Any assistance would be greatly welcome, thank you in advance!
 

rIKmAN

Member
Are you certain that you are using the correct versions of the JDK/SDK etc?
GM can be finicky with Android so you can check the Android Setup Guide to make sure you are using the recommended versions, just downloading the latest versions to use with 1.4 is almost certainly going to fail and have issues.

IIRC you can also turn off Lint in the Global Game Settings, so that may be worth a try also just to see what happens.

Also is this error in a fresh empty project or an existing project?
If it's an existing project, test compiling an empty project from now until you get it compiling successfully, then once you know all the build tools are working try your actual project and if there is an issue then you know it's project specific and can start honing in what that issue might be.

Also in case you aren't aware, you aren't going to be able to submit anything created in 1.4 to the Play Store as it will be rejected.
GMS 1.4 APK's no longer comply with the requirements (ie. 64bit) and haven't for a long time - compiling to your local device or sideloading a compiled APK should work though.
 
Top