Closed delanick closed 6 years ago
Hello @delanick,
The issue is related to version 2.6.0 of the NativeScript Google Maps plugin, which contains a manifest package attribute that breaks the Android build for apps that target NativeScript versions lower than 4.0.0.
To resolve this issue, you can use one of the following options:
@ggarabedian Thanks a ton, will do the upgrade. How do I upgrade my Nativescript project? I have {N} 4.1.0 installed on my machine, but not sure my project is at that level. Please advise how I check and how to upgrade the project so I can do it.
Thanks!
@delanick There are a couple of ways to update your app to the latest version of NativeScript.
tns update 4.1.0
. I recommend that you use this approach.@ggarabedian I use cloud builds so the first option you mentioned won't help me as far as I know. Will the second option help?
@ggarabedian to what do I update them in the second option?
@delanick, it does not matter if you are using cloud or local builds. In both cases, the first option will work just fine. The provided command will update the local project and you can then build it in the cloud as well. Just have in mind that after updating the app from 3.x to 4.x version, you might need to address various issues and breaking changes.
To update your app using the second option, you need to modify the package.json file. Here are example values that you can use (they are for the latest versions of the runtime and core modules). The values that you need to modify in your file are tns-android, tns-ios and tns-core-modules.
"nativescript": {
"id": "com.tamteam.GoogleMapsSDK",
"tns-android": {
"version": "4.1.3"
},
"tns-ios": {
"version": "4.1.1"
}
},
"dependencies": {
"nativescript-google-maps-sdk": "2.6.0",
"nativescript-theme-core": "~1.0.4",
"tns-core-modules": "4.1.0"
},
@ggarabedian I tried option one and was given the following result by my Mac:
✖ You need to have Android SDK 22 or later and the latest Android Support Repository installed on your system.
Run `$ sdkmanager` to manage the Android Support Repository. In case you already have it installed, make sure `ANDROID_HOME` environment variable is set correctly.
You have nativescript-cloud extension installed, so you can execute cloud builds, but your environment is not configured properly and you will not be able to execute local builds. To continue, choose one of the following options:
Select "Configure for Local Builds" to run the setup script and automatically configure your environment for local builds.
Select "Skip Step and Configure Manually" to disregard this option and install any required components manually.
You have nativescript-cloud extension installed, so you can execute cloud builds, but your environment is not configured properly and you will not be able to execute local builds. To continue, choose one of the following options:
Select "Configure for Local Builds" to run the setup script and automatically configure your environment for local builds.
Select "Skip Step and Configure Manually" to disregard this option and install any required components manually.
? To continue, choose one of the following options: (Use arrow keys)
❯ Try Cloud Operation
Configure for Local Builds
Skip Step and Configure Manually
@ggarabedian the manual option worked like a charm though, thanks a ton! App is working on both platforms!
@delanick, I am glad to hear that the second approach worked out for you.
As for the first option, we will investigate this further because a configured local environment shouldn't be a prerequisite to run the command and update the app.
The initially reported problem has been resolved and I am going to close this issue. Please, feel free to reopen it if you encounter the same behavior in the future.
Thanks so much bud, much appreciated! :)
Please, provide the details below:
Did you verify whether this issue has already been reported here?
_Yes/
Tell us about the problem
My app builds for iOS and deploys but the last few times I've tried running on an Android device I get build fails. Please see the logs for the errors as I don't understand what is wrong.