Smartling/android-repository

Element type "meta-data" must be followed by ">" or "/>".

Closed this issue · 1 comments

I'm unable to apply plugin for Smartling version 2.5 and compile. Android studio complains with the following:
Error:Element type "meta-data" must be followed by either attribute specifications, ">" or "/>".

I looked at the build-intermediates-manifests and noticed that the
<meta-data android:name="com.smartling.project.config" android:value="projectId|projectSecret|null|null|ota-serving|verbose|false"/></application>

meta data line was not generated at all. I looked at the gradle console for the tasks and am seeing
Smartling: Config for reviewRelease: SmartlingConfig{name='reviewRelease', logLevel='verbose', mode='context-capture', otaServing=null, auth=Auth{userIdentifier='"xxx"', userSecret='"xxx"'}}

followed by
Smartling: Add process manifest action to reviewRelease.

I'm under the impression that the smartling SDK is trying to add the meta data unsuccessfully? I had read the other issue thread that was closed regarding the meta-data and was unable to find a resolution.

I've tried downgrading Smartling versions to 2.4 and 2.3.1 in addition to disabling Instant Run. I'm building on gradle tools version 2.3.3 and working on android studio version 2.3.3. In terms of set up I followed exactly the guide in the ReadMe regarding different build flavors using 'Review' but omitted the otaServing section within the smartling task as I'm only using the Context-Capture and also don't know where to find my Project AES Key within the Smartling Console.

Turns out something was wrong with populating the smartling task via a properties file, I'll look more into it but for now it's resolved.