# E: Type "RemObjects.Elements.RTL.String" is defined in multiple references: Elements, elements

**URL:** https://talk.remobjects.com/t/e-type-remobjects-elements-rtl-string-is-defined-in-multiple-references-elements-elements/23376
**Category:** Fire
**Created:** [October 22, 2020, 8:00pm UTC](https://talk.remobjects.com/t/e-type-remobjects-elements-rtl-string-is-defined-in-multiple-references-elements-elements/23376 "2020-10-22T20:00:53Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Dana\_Haukoos](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/d/258eb7/32.png) [@Dana\_Haukoos](https://talk.remobjects.com/u/Dana_Haukoos)
#### Post date: [October 22, 2020, 8:00pm UTC](https://talk.remobjects.com/t/e-type-remobjects-elements-rtl-string-is-defined-in-multiple-references-elements-elements/23376/1 "2020-10-22T20:00:53Z")

</div>

I’ve created a simple multiplatform library. Next I added an “EUnit Test Application (Java)” project to the solution to test it.

Next I drag the library project into the References node of the test application project in order to get ready to write test cases. When I compile everything at this point, I get the compiler errors:

E: Type “RemObjects.Elements.RTL.String” is defined in multiple references: Elements, elements [/Users/dana.haukoos/Gitlab/MPhttpRO/testapplicationAndroid/Program.java (7)]  
E: Type “RemObjects.Elements.RTL.String” is defined in multiple references: Elements, elements

It seems that the multiplatform library has a reference to **E** lements, and the test project has a reference to **e** lements, and because they are spelled differently, the system is not recognizing they should be redundant references (?)  
In any case, what to do to resolve this?

---

<div class="post-metadata">

### Author: ![mh](https://talk.remobjects.com/user_avatar/talk.remobjects.com/mh/32/18050_2.png) [@mh](https://talk.remobjects.com/u/mh)
#### Post date: [October 22, 2020, 9:27pm UTC](https://talk.remobjects.com/t/e-type-remobjects-elements-rtl-string-is-defined-in-multiple-references-elements-elements/23376/2 "2020-10-22T21:27:21Z")

</div>

> [@Dana\_Haukoos](#):
>
> It seems that the multiplatform library has a reference to **E** lements, and the test project has a reference to **e** lements, and because they are spelled differently, the system is not recognizing they should be redundant references (?)  
> In any case, what to do to resolve this?

This seems to be a side effect of how references are managed in multi-target projects, yes. the “Elements” reference is, I assume, set on project level, for all targets, and you (again I assume) added the Eunit referent to the Java target, which (erroneously) tries to pull in “elements” again.

Can you send me your project file (just the .elements is fine) so that I can see what’s happening exactly? hopefully I can (a) have a quick look and see if in can tweak it to work around this for you right now and (b) properly fix this, for tomorrow’s build (I’m sure it’s a check that should be case insensitive but isn’t somewhere; Java loser-cases all reference names; the other platforms don’t…

thanx!

---

<div class="post-metadata">

### Author: ![mh](https://talk.remobjects.com/user_avatar/talk.remobjects.com/mh/32/18050_2.png) [@mh](https://talk.remobjects.com/u/mh)
#### Post date: [October 22, 2020, 9:29pm UTC](https://talk.remobjects.com/t/e-type-remobjects-elements-rtl-string-is-defined-in-multiple-references-elements-elements/23376/3 "2020-10-22T21:29:36Z")

</div>

FWIW, tried to reproduce this here and can’t replicate it, so searing what’s exactly in your `.elements` will definitely help. thanx!

---

<div class="post-metadata">

### Author: ![Dana\_Haukoos](https://talk.remobjects.com/letter_avatar_proxy/v4/letter/d/258eb7/32.png) [@Dana\_Haukoos](https://talk.remobjects.com/u/Dana_Haukoos)
#### Post date: [October 22, 2020, 9:46pm UTC](https://talk.remobjects.com/t/e-type-remobjects-elements-rtl-string-is-defined-in-multiple-references-elements-elements/23376/4 "2020-10-22T21:46:15Z")

</div>

Here’s a newer zip file where I’ve recreated this problem.

Dana

[MPhttpRO 2.zip](https://talk.remobjects.com/uploads/short-url/cqonIoanfIRVdZhAK5DtRFkb7sa.zip) (2.14 MB)

---

<div class="post-metadata">

### Author: ![mh](https://talk.remobjects.com/user_avatar/talk.remobjects.com/mh/32/18050_2.png) [@mh](https://talk.remobjects.com/u/mh)
#### Post date: [October 22, 2020, 9:51pm UTC](https://talk.remobjects.com/t/e-type-remobjects-elements-rtl-string-is-defined-in-multiple-references-elements-elements/23376/5 "2020-10-22T21:51:22Z")

</div>

reproduced, thanx.

manually adjusting the case in the test/main project to uppercase “Elements” should work around this for now; I’ll fix to have this handled properly now.

```auto
    <Reference Include="elements">
      <Private>True</Private>
    </Reference>

```

to

```auto
    <Reference Include="Elements">
      <Private>True</Private>
    </Reference>

```

---

<div class="post-metadata">

### Author: ![mh](https://talk.remobjects.com/user_avatar/talk.remobjects.com/mh/32/18050_2.png) [@mh](https://talk.remobjects.com/u/mh)
#### Post date: [October 22, 2020, 9:56pm UTC](https://talk.remobjects.com/t/e-type-remobjects-elements-rtl-string-is-defined-in-multiple-references-elements-elements/23376/6 "2020-10-22T21:56:43Z")

</div>

And fixed for build .2465.
