- Home /
KeyNotFoundException building error
i am working on an Android project with Unity 4.2.
When i Build and Run the game, it give me an error. this is it:
Error building Player: KeyNotFoundException: The given key was not present in the dictionary.
but i can (just) Build it easily. (create a .apk file)
what is the mistake? how can i fix that?
thanks!
i chcked "development build" box but still have that error
Answer by darrellii · Nov 03, 2014 at 02:51 PM
I get this problem when I save my builds within my unity project assets folder.
All I did was delete my .app folder from with in my assets and everything works Fine!
Answer by Dimling · Jul 30, 2013 at 12:55 PM
Copied earlier answer, original answer can be found here by Ben Stoneman:
The problem is regarding the .apk file signature.
What is the signature?: http://developer.android.com/tools/publishing/app-signing.html
You will need to enter it into the Keystore password via the player settings.
You can avoid the signature issue by checking the "development build" box.
thanks for answer. but not work!
i chcked "development build" box but still have that error
I'm having the same issue. $$anonymous$$ust be with new Unity build as I didn't have it with the previous build. I get around this by not using Build & Run option. If you just select Build it should just compile the apk for you. I think the issue is when build and run is used a signage key is required for remote access to the device your trying to run it on. But this is just a guess.
Answer by tingtheGreat · Feb 25, 2015 at 06:47 PM
If you changed the name of your entire project, try to remember the old name of your project and rename with the old project name.
Answer by adi4x · May 26, 2015 at 08:35 AM
try only Build.. if it's working then the keystore it's OK
For me Build and Run it was not working because of the data cable
Your answer
![](https://koobas.hobune.stream/wayback/20220613111203im_/https://answers.unity.com/themes/thub/images/avi.jpg)