Jump to content

[TOPIC: topicViewTemplate]
[GLOBAL: userSmallPhoto]
Photo

Build Error #1 - Flurry Plugin
Started by Method Mobile Aug 14 2019 12:52 AM

5 replies to this topic

Best Answer Method Mobile , 14 August 2019 - 06:18 AM

@vlads

 

Excellent! Thank you! :)

[TOPIC CONTROLS]
[/TOPIC CONTROLS]
[modOptionsDropdown]
[/modOptionsDropdown]
[reputationFilter]
[TOPIC: post.html]
#1

Method Mobile

[GLOBAL: userInfoPane.html]
Method Mobile
  • Contributor

  • 135 posts
  • Corona SDK

Getting a [Build Error #1] message when attempting to build with the flurry analytics plugin. If I remove the flurry plugin, everything builds fine.

 

Corona Version 2019.3516

Windows 10

 

02:37:31.161  FAILURE: Build failed with an exception.
02:37:31.161  
02:37:31.161  * What went wrong:
02:37:31.161  Execution failed for task ':App:processReleaseManifest'.
02:37:31.161  > Manifest merger failed : uses-sdk:minSdkVersion 15 cannot be smaller than version 16 declared in library [com.flurry.android:analytics:11.4.0] C:\Users\J\.gradle\caches\transforms-2\files-2.1\1668236351809997b8e0b8c9d01b6b8f\AndroidManifest.xml as the library might be using APIs not available in 15
02:37:31.161    Suggestion: use a compatible library with a minSdk of at most 15,
02:37:31.161    or increase this project's minSdk version to at least 16,
02:37:31.161    or use tools:overrideLibrary="com.flurry.android.analytics.sdk" to force usage (may lead to runtime failures)
 
 
Thanks guys,
JM
 


[TOPIC: post.html]
#2

morphous

[GLOBAL: userInfoPane.html]
morphous
  • Observer

  • 3 posts
  • Corona SDK

@Method Mobile,

 

Have you tried setting the minSDK to at least 16 in your build.settings as suggested in the log?

 

 

 

02:37:31.161    or increase this project's minSdk version to at least 16,

 

For example:

android =
{
usesPermissions =
{
"android.permission.INTERNET"
},

minSdkVersion = "16"
},

Hope this helps.



[TOPIC: post.html]
#3

Method Mobile

[GLOBAL: userInfoPane.html]
Method Mobile
  • Contributor

  • 135 posts
  • Corona SDK

@ Morphous

 

That seems to have done the trick. Thank you very much.

 

Best Regards,

JM



[TOPIC: post.html]
#4

vlads

[GLOBAL: userInfoPane.html]
vlads
  • Corona Geek

  • 1,005 posts
  • Corona Staff

Hello. I’ve updated flurry plugin and as per error, it now requires minSdkVersion to be at least 16
https://docs.coronalabs.com/guide/distribution/advancedSettings/index.html#android

[TOPIC: post.html]
#5

Method Mobile

[GLOBAL: userInfoPane.html]
Method Mobile
  • Contributor

  • 135 posts
  • Corona SDK

  Best Answer

@vlads

 

Excellent! Thank you! :)



[TOPIC: post.html]
#6

agramonte

[GLOBAL: userInfoPane.html]
agramonte
  • Corona Geek

  • 1,305 posts
  • Corona SDK

Another options is to force the SDK to 15. Not for the weak but i have not had a problem so far. Add the following to your build file. Edit: Flurry will still not work but it will just fail silently unless you change the debug level.

manifestChildElements = 
        {
            -- Array of strings
            [[
            <uses-sdk tools:overrideLibrary="com.flurry.android.analytics.sdk"/>
            ]],
        },

Edited by agramonte, 14 August 2019 - 06:58 PM.



[topic_controls]
[/topic_controls]