-
-
Notifications
You must be signed in to change notification settings - Fork 197
Error: Exception: The plugin [email protected] is already installed #2487
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
me2 |
It is a known issue that occurs sometimes, and is a bit annoying. To fix it you need to edit your |
thanks. works fine |
I think it showed up for me in the package json after running the following line: npm install tns-core-modules@latest --save from http://docs.nativescript.org/releases/upgrade-instructions but not 100% sure. |
Hi.
I followed all the steps mentioned above without success. Any other solution ? |
@minato-namikaze please describe the error in details and how it can be reproduced. Also the Android SDK path doesn't seem correct. At all. it should go as far as Check the existing issue to find out whether yours has been encountered by other people. |
Following the steps from http://docs.nativescript.org/angular/releases/upgrade-instructions.html adds tns-android to Then if I execute tns platform add android I get the following error So I try to do tns platform remove android and get this error: Then I remove If I repeat the cleaning steps and remove platforms folders and then exec tns update - all the same. "tns-ios" is installed normally and "tns-android" is again in "dependencies". |
@Pip3r4o |
@votiakov currently |
|
Thanks for support, that was my fault. I have 2 directories with android SDKs and I installed 25.0.2 to the wrong directory. So tns platform add could not properly install the platform, that is why tns-android was still in the dependencies section, because the installation of platform fails. Probably you should also remove the tns-android from the dependencies section if the installation is not successful? |
@votiakov We should indeed! @minato-namikaze it still doesn't become clear whether your ANDROID_HOME points to the correct directory now, You should probably install API 23 and above too, as well as the other support libraries. Build tools 25.0.2 are also required. I'd suggest installing the current platform I also want to kindly ask you to provide an error report or anything that can help us to identify the problem. Simply stating that you have a problem without additional information is of no use, and we can't identify the culprit. |
I'm not at work yet, so I can't double check everything, but before I filed this I had removed the Here is my package.json:
|
@grasshoppermouse I would check if your /usr/local/opt/android-sdk/ directory has build-tools 25.0.2 . |
Thanks. @votiakov, yes, I have 25.0.2. Following recommendations here I can now add the android platform, and it installs on my device (Moto G, Android 4.4.4), but after displaying the splash screen it then crashes with:
|
Some change I made debugging the original problem caused the second problem. Fixed now. |
I did |
Hi ! I have the same problem and I do what you suggest, I delete from package.json the tns-android but when I tried to add android platform it throws me sed: invalid replacement string Do you have any idea for this? Thanks a lot ! |
I'm running into this as well. iOS builds fine, but building Android results in:
Some previous answers mention removing the tns-android entry from the package.json "dependencies" block. This worked for me a few weeks ago, but now there is no tns-android entry in that block. It only appears under "nativescript", and removing it seems to have no effect. Additionally, running Any insight would be appreciated. EDIT: Cleaning out the project and re- |
I'm having the same issue as @allberto. When I attempt to add the android platform it gives me the error "sed: invalid replacement string" and fails out. |
Are there no fix for this yet? |
@irman, @Svoig, @shivapersad, @allberto please provide us with steps to reproduce along with the version of CLI and what OS you're on? @minato-namikaze you should probably run |
This is my
But every time I run Environment tested:
It seems to suddenly happened today right after I run |
@irman the problem is the nativescript id: currently needs at least 3 components: |
@Plamen5kov oh wow really? thank you! it works now, although I need to update my app id now. 🤔 |
@Plamen5kov Is there any workaround to change the APP ID manually without waiting for the fix? I have published version with the app ID on iOS already, don't want them to be different. |
@irman I'll do a fix shortly that will take the last parameter as an ID, would that work for you? The fix will be accessable through installing CLI like so: Edit: If you don't want to use the id set in the package.json, you can set an explicit one in |
@Plamen5kov yea that'd be great! note that I have a gulp that run to set app id (and app version and other stuffs) on several locations:
based on my own |
@irman you can read more information here but in short:
The |
Does this mean that I can set the id as But it looks like more trouble now. Especially for you. I should just rename the app id so instead of these:
I'll have these instead:
Just found out need to resubmit the app for review (iOS) if I want to update it anyway, might as well create a new APP ID. What do you think? @Plamen5kov |
@irman whatever works best for you. I sent you what are the recommended workflows suggested by google so you can choose what best fits you. |
@Plamen5kov I was able to resolve the issue. I had my "id" as "com.something" when it should be 3 i.e. "org.company.application". This affected the Android build only. Sorry for not responding earlier. |
In case of anymore troubles with adding the platform, when an unexpected crash happens or you just interrupt the command with
You can test with CLI from master by installing it like so:
|
I just tried to start a project from scratch cloning the nativescript-template-tutorial, and then got the error immediately upon trying to update to 2.5.2. The lines below should reproduce. ideas?
|
Thanks everyone! @Plamen5kov when do you expect this to be resolved? So that I can be aware for the other project we're working on. |
@irman can you be more specific, there are 3 issues here. |
@sagearbor try running: |
@Plamen5kov |
Still having this problem. And Does anyone know the different between the |
@zakdances as a workaround for update try running: On your second question, the |
Just updated to 2.5. I can add the ios platform and run on the emulator, but I can't add the android platform (OS X 10.12.2).
UPDATE: when I create a new test project,
tns run android
works. But I still can't add the android platform to my existing project. Pointers appreciated.The text was updated successfully, but these errors were encountered: