Archive name has to have at least one '.' in it

I created a new Android Project with RemObjects C#. I did not change anything, but when it try to compile it, i get the following error:

------ Build started: Project: RemObjectsTest, Configuration: Debug ------
Target "_CheckForInvalidConfigurationAndPlatform" in file "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets" from project "c:\RemObjectsTest\RemObjectsTest.hydrogene" (entry point):
Target "CooperPreflight" in file "C:\Program Files (x86)\MSBuild\RemObjects Software\Oxygene\RemObjects.Oxygene.Cooper.Common.targets" from project "c:\RemObjectsTest\RemObjectsTest.hydrogene" (target "ResolveAssemblyReferences" depends on it):
	JDKRoot:C:\Program Files (x86)\Java\jdk1.7.0_71
	JRERoot:C:\Program Files (x86)\Java\jre1.8.0_31
Target "GetFrameworkPaths" in file "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets" from project "c:\RemObjectsTest\RemObjectsTest.hydrogene" (target "PrepareForBuild" depends on it):
Target "GetReferenceAssemblyPaths" in file "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets" from project "c:\RemObjectsTest\RemObjectsTest.hydrogene" (target "PrepareForBuild" depends on it):
Target "PrepareForBuild" in file "C:\Windows\Microsoft.NET\Framework\v4.0.30319\Microsoft.Common.targets" from project "c:\RemObjectsTest\RemObjectsTest.hydrogene" (target "ResolveAssemblyReferences" depends on it):
Target "ResolveAssemblyReferences" in file "C:\Program Files (x86)\MSBuild\RemObjects Software\Oxygene\RemObjects.Oxygene.Cooper.Android.targets" from project "c:\RemObjectsTest\RemObjectsTest.hydrogene" (target "Build" depends on it):
	Reference: android.jar
Target "CooperAndroidBeforeCompile" in file "C:\Program Files (x86)\MSBuild\RemObjects Software\Oxygene\RemObjects.Oxygene.Cooper.Android.targets" from project "c:\RemObjectsTest\RemObjectsTest.hydrogene" (target "Build" depends on it):
	XML: C:\Users\Sascha\AppData\Roaming\RemObjects Software\Elements\CooperPaths.xml
C:\Program Files (x86)\MSBuild\RemObjects Software\Oxygene\RemObjects.Oxygene.Cooper.Android.targets(62,5): error GR3: Archive name has to have at least one '.' in it
Done building project "RemObjectsTest.hydrogene" -- FAILED.

Build FAILED.
========== Build: 0 succeeded or up-to-date, 1 failed, 0 skipped ==========

any advice on this?

It’s pretty much what the error message says.

Android doesn’t allow for the application name (the .apk filename,and the .jar name inside) to not contain at least one dot. so RemObjectsTest.apk isn’t valid. Foo.RemObjectsTest.apk would be. Note that this is a limitation/requirement of the Android runtime. we just enforce it because otherwise your app would fail to work lateron, possibly with more awkward errors.

The recommendation is to use reverse domain notation, i.e. com.yourcompany.remobjectstest.apk. (archive names also need to be lower case. But Elements will lowercase them fr you if you specify a mixed-case name).

You can go to project properties and change the archive name independently of the project name, if you like. Or us polka name with dots when creating a new project.

yours,
marc

Thanks for that. Works! :smile:

Maybe, you could add this to the project type description and/or also split camelcased project names and connect the dots!?