IAMABANANA
IAMABANANA

Reputation: 155

Cannot build release Android in visual studio

I'm trying to get the apk for android to release to the mobile store, but every time I try to build in release I get this error.

Reading build config file: C:\ProjectName\build.json
    1>  ERROR building one of the platforms: SyntaxError: Unexpected token 
    1>  You may not have the required environment or OS to build this project
    1>  SyntaxError: Unexpected token 

Now I've been following these instructions Package your Cordova App and it says to put all my keystore stuff into the build.json, but I didn't have one of those. I couldn't find a .json extension to add it, so I just used the .resjson but renamed it build.json. Then I added all my keystore stuff into that.

Anyone have any idea what i've done wrong? :(

Upvotes: 0

Views: 598

Answers (2)

Linda Z
Linda Z

Reputation: 312

Make sure that you have the correct line endings in your build.json file.

On the File menu, choose Advanced Save Options, you can control it there.

enter image description here

Upvotes: 2

Strickos9
Strickos9

Reputation: 106

You can look at this answer, it may be the same issue you're facing this

Upvotes: 0

Related Questions