• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
  • Help Room /
avatar image
Question by mouhammadbatarni · Sep 15, 2018 at 05:41 PM · errorunity 2dunityeditorerror messageplugin

error CS1704: An assembly with the same name `Editor' has already been imported. Consider removing one of the references or sign the assembly

I got this error message when I imported the plugin for in-app purchases in unity and I got some warning messages before it which are :

1) Assembly: 'C:/Users/user/Desktop/location/project name/Assets/Plugins/UnityPurchasing/Bin/Stores.dll' uses obsolete Unity API (UnityUpgradable)

2) Assembly: 'C:/Users/user/Desktop/location/project name/Assets/Plugins/UnityPurchasing/Bin/Editor.dll' uses obsolete Unity API (UnityUpgradable)

when I press clear the only thing that stays in the editor is :

error CS1704: An assembly with the same name `Editor' has already been imported. Consider removing one of the references or sign the assembly Library/ScriptAssemblies/Editor.dll (Location of the symbol related to previous error) Assets/Plugins/UnityPurchasing/Bin/Editor.dll (Location of the symbol related to previous error)

Any solutions ?? I really am stuck on this one.

I also got this notification after the error message :

Some scripts have compilation errors which may prevent obsolete API usages to get updated. Obsolete API updating will continue automatically after these errors get fixed.

but I found no errors in my scripts and I am using visual studio the latest version

any advice ????

I have tried deleting the library and temp folders

reimporting everything

renaming the editor.dll

and deleting the editor.dll file in the library, but nothing worked, help is very appreciated.

Comment
schwollie
Astirian

People who like this

2 Show 1
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image uberitsolutions · Aug 05, 2019 at 11:24 PM 0
Share

@mouhammadbatarni I have the same problem. Could you give me an outline what to do to solve it because I am stuck here.

2 Replies

· Add your reply
  • Sort: 
avatar image

Answer by schwollie · Oct 09, 2018 at 03:40 PM

@mouhammadbatarni I have the same Problem, but if I create a new project and import the purchasing plugin it shows no error message (Xiaomi is imported too). To reproduce this error I had to delete the UnityChannel folder under Plugins. So I suggest it has something to do with this.

Comment
Astirian
EDevJogos

People who like this

2 Show 2 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image schwollie · Oct 09, 2018 at 04:01 PM 0
Share

I think I have solved it. Try to delete everything under the plugins folder. Then delete the Xiaomi package via the package manager. And then import the things from IN-APP-PURCHASING. Now there should be a UnityChannel and a UnityPurchasing folder under the plugins folder.

I hope this will help you!

avatar image Astirian · Oct 10, 2018 at 01:48 PM 0
Share

This works for me also, there seem to be massive issues with the Xiaomi stuff. The next problem for me now though is an unresolvable IStoreListener. Fun and games. Fun and games.

avatar image

Answer by mouhammadbatarni · Oct 21, 2018 at 12:34 PM

Sorry for the late response, I deleted some files and reimported them or left them deleted like the library etc... and somehow my issue got solved, in fact, I even published the game to google play, its similar to adventure capitalist, here's a link :) try it for yourself https://play.google.com/store/apps/details?id=com.Pikko.CashCapitalist

Comment
WILEz1975
GGGamerMaster

People who like this

0 Show 0 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Welcome to Unity Answers

If you’re new to Unity Answers, please check our User Guide to help you navigate through our website and refer to our FAQ for more information.

Before posting, make sure to check out our Knowledge Base for commonly asked Unity questions.

Check our Moderator Guidelines if you’re a new moderator and want to work together in an effort to improve Unity Answers and support our users.

Follow this Question

Answers Answers and Comments

188 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Error when import UnityPurchasing "CS1704: An assembly with the same name `Editor' has already been imported" 1 Answer

Failed to start the Unity Package Manager local server process. Unity 2021.3.12f1 and 2020.3.41f1 0 Answers

Unity error DirectoryNotFoundException: Could not find a part of the path : 0 Answers

Unity system errors 0 Answers

What is wrong with my code? 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges