Get black background on android build

Also had black screen when I did my first build. What resolved it on my side, was to set the Scripting Backend to IL2CPP rather than the default Mono, then Api Capability Level to .Net 4.x, and also tick the Target Architectures: ARM64.
When I built the app again my black screen issue was gone.

i was going through the steps and it mentions add ar hit tester script. but i do not have that script.

Hi Kyle,

Yes you do have that script. If you click the add a component button in unity, you can do a search for AR Hit Tester and the script will show up. It is part of the base ARDK libraries so it is downloaded to your machine when you download and install ARDK. You can also find it by going to the search bar and typing AR Hit Tester. I will include an image to help with your search:

Please let us know if this helps.

here’s what it finds on my end:


image

Hi Kyle,

Ok so what I would like you to do is download the newest version of the ARDK and all the subsequent files from the downloads page. I will include a link to the page here: https://lightship.dev/account/downloads

You should download the following:

  1. https://lightship.dev/account/downloads/artifacts/ardk-2.2.0.unitypackage

  2. https://lightship.dev/account/downloads/artifacts/ardk-examples-2.2.0.unitypackage

  3. https://lightship.dev/account/downloads/artifacts/ardk-mock-meshes.unitypackage

  4. https://lightship.dev/account/downloads/artifacts/ardk-mock-env-2.2.0.unitypackage

Once you have downloaded these you will need to either delete the old installation files or start a new project from scratch. Whatever you decide to do let us know so we can help you further.

Hello Kyle,

As an additional note you may also want to update your Unity version to the latest LTS release. Here is a link on how to find them: https://unity3d.com/unity/qa/lts-releases

Hi Kyle,

One last note, try typing ARHitTester with no spaces in the search bar. You might have better luck doing this.

so i downloaded the newest one and imported it in. when i search for ar hit tester like you said together “athittester” this is what i get. however it wont let me add any of them due to attached error. and there are no errors in the console.
image

Hey Kyle,

Could you please be more specific about how you are trying to add this script? Also, have you tried any of the tutorials related to what you’re trying to accomplish with the newest version of ARDK? As an addendum did you import all of the packages from the download page? I am including a screenshot for your reference:

Hi Kyle,

If you imported all the packages then you would have the script. It does not look like it is showing up in your search.

Hey Kyle,

I have another screenshot for you:

You should be searching for the script in ARDKExamples.

so i think that is the problem when i download the other flies except the adrk, the example scenes, mock meshes, and mock environment’s they all have errors on them, see attached. also with them added here is the hit tester result. still can’t add any of them, get the same message as before.



Hi Kyle,

Thanks for your patience! Starting with the error messages you’re receiving, it looks like these have to do with a missing reference to the Niantic.Utilities.Input.Legacy namespace. I was able to reproduce this by removing the legacy folder from the project. Can you check to see if it’s there by going to Assets > ARDK> Utilities > Input and confirm that you do see a legacy folder? If not, can you delete this ARDK package and re import it from here*? When you do, can you make sure that everything is check marked prior to importing it. If that resolves the errors can you then try to add on the ARHItTester component?

so i do have a legacy folder. however there is only one thing in it. if that’s not correct i tried reimporting and it dose the same thing.

Hi Kyle,

Hmm ok, thanks for checking. That sounds right. Can you double check to see how you’re handling input? The PlatformAgnosticInput script only works with Unity’s input manager vs input system. You can check this by going to Edit > Project Settings > Player > Other settings > Active Input Handling and make sure to select either “Input Manager (old)” or “Both”.

This topic was automatically closed 2 hours after the last reply. New replies are no longer allowed.