I am getting compiler errors while trying to build my game to my phone

Hello,

I am creating a 2D endless runner, and I am trying to build the game to my phone to test the mobile controls and see how it looks on mobile, but I am getting these compiler errors and I am not sure how to rectify the issue. Any help is deeply appreciated.

You might want to repost over in the Platform area under Android. Looks like perhaps your SDK or NDK or something isn’t configured properly, but that’s just a wild guess.

You might try doing Build System Internal instead of Gradle and see if that works better for you. I’m not that familiar with using the Gradle build system, but I’ve had a few issues when I’ve tried it. You can change this under Build Settings.

Posted it there.

Thanks.

It said that it built, but I cannot find the application on my phone.

If you find the APK file on your system and you can use the adb tool (part of Android SDK) to install it to your phone manually. I’m guessing it didn’t actually build an APK however, based on the error.

This is the new error message I am receiving.

Have you successfully built before? I’m wondering if you have the wrong jdk installed.

On a different PC, yes. There’s no way I could have incorrectly installed the Jdk.
Should I try reinstalling it?

It’s not incorrect, it just might be the wrong version. The newest jdk doesn’t work with Unity and can give similar errors sometimes. It’s just a thought.

I must admit I’ve not seen that INSTALL_PARSE_FAILED_NO_CERTIFICATES error before.

I guess also make sure you have the proper platform tools installed. I think I remember reading something about a version of the tools being buggy with Unity builds also.

Did you even google that term? I think you’re simply trying to install a non-signed APK.

So that begs the question, how would I sign it?

To sign your app go to player settings->Publishing. Generate a keychain and a key for your project. Write down your passwords. That’s it

Nevermind, I did that already.

Sometimes the keys can unset from your project, check if they are still set. If they are maybe try removing them, I dont think you need them for development builds.

And just for checking, are your dev options on your phone active?

My developer options on my phone are indeed active.
I tried removing them, that didn’t work either. I am going to try and upload again.

:slight_smile:

No success :frowning:

I read googling that it may have to do with the manifest. Can’t help there but maybe someone can.