More "newbie" build errors

E: Unknown type “HttpRequest”, did you mean “RemObjects.Elements.RTL.HttpRequest”? [/Users/dana.haukoos/Gitlab/MPhttpRO/CCWSv2.java (16)]
E: Unknown identifier “Url”, did you mean “RemObjects.Elements.RTL.Url”? [/Users/dana.haukoos/Gitlab/MPhttpRO/CCWSv2.java (16)]
E: Unknown identifier “HttpRequestMode”, did you mean “RemObjects.Elements.RTL.HttpRequestMode”? [/Users/dana.haukoos/Gitlab/MPhttpRO/CCWSv2.java (18)]
E: Unknown identifier “log”, did you mean “sun.rmi.runtime.Log”? [/Users/dana.haukoos/Gitlab/MPhttpRO/CCWSv2.java (21)]
E: Cannot invoke type “log”, did you mean to use new? [/Users/dana.haukoos/Gitlab/MPhttpRO/CCWSv2.java (21)]
E: Unknown type “HttpBinaryRequestContent”, did you mean “RemObjects.Elements.RTL.HttpBinaryRequestContent”? [/Users/dana.haukoos/Gitlab/MPhttpRO/CCWSv2.java (23)]
E: Unknown identifier “Encoding”, did you mean “RemObjects.Elements.RTL.Encoding”? [/Users/dana.haukoos/Gitlab/MPhttpRO/CCWSv2.java (23)]
E: Unknown identifier “Http”, did you mean “RemObjects.Elements.RTL.Http”? [/Users/dana.haukoos/Gitlab/MPhttpRO/CCWSv2.java (25)]
E: Unknown type “JsonDocument”, did you mean “RemObjects.Elements.RTL.JsonDocument”? [/Users/dana.haukoos/Gitlab/MPhttpRO/CCWSv2.java (11)]
Compiling target ‘Island.Android’,
RemObjects Elements Compiler for .NET, Cocoa, Java and Island.
Version 10.0.0.2557 (develop) built on talax, 20200925-134940. Commit 7c405c0.
Copyright 2003-2020 RemObjects Software, LLC. All rights reserved.
E: Unknown namespace “java.util” in uses list [/Users/dana.haukoos/Gitlab/MPhttpRO/CCWSv2.java (3)]
E: Case for identifier “format” does not match original case “Format” [/Users/dana.haukoos/Gitlab/MPhttpRO/CCWSv2.java (16)]
E: Case for identifier “format” does not match original case “Format” [/Users/dana.haukoos/Gitlab/MPhttpRO/CCWSv2.java (20)]
E: Case for identifier “log” does not match original case “Log” [/Users/dana.haukoos/Gitlab/MPhttpRO/CCWSv2.java (21)]

I tried to add a reference to RemObjects.Elements.RTL , but the UI isn’t acting as described in this link for me.

It sounds as if you have the reference for Elements RTL, but you dont have the RemObjects.Elements.RTL imported at the top of the file (or in there Default Uses) setting? See this (badly placed, I’m overdue to revise and move that topic) docs topic Namespaces and References for details on the difference between references and namespaces.

This one sounds like you’re not building for Java (the patform)? Java=spoecific Apis are only available when building for Java (or Android SDK, of course).

Finally,

You can set the “Cross Platform Compatibility Mode” setting to True to avoid this error, where platform APIs such as format or toString are available on multiple platforms, but differ in case. You might still wanna look out to make sure platform APIs such as format, specifically, still works the same way. Sometimes APIs look similar, but behave differently.

Stick to Elements RTL APIs to ensure same API syntax and semantics across all platforms.

See Cross-Platform Compatibility Mode for more on CPM.

I thought I had already tried this before, but after (again ?) adding
import RemObjects.Elements.RTL.;
that resolved most of my build errors. The others were resolved by removing
import java.util.
;

Thanks!

1 Like