defold / extension-firebase-analytics

Google Firebase Analytics extension for the Defold game engine
https://www.defold.com/extension-firebase-analytics/
MIT License
16 stars 12 forks source link

Linker command failed with defold 1.2.161 for Android #11

Closed Filazapovich closed 4 years ago

Filazapovich commented 4 years ago

Build output for Android armv7 and arm64 bundle

warning: [options] bootstrap class path not set in conjunction with -source 1.6
    Note: android.support.v4.app.FragmentTransition: can't find dynamically referenced class android.support.transition.FragmentTransitionSupport
    Note: android.support.v4.graphics.TypefaceCompatApi24Impl: can't find dynamically referenced class android.graphics.FontFamily
    Note: android.support.v4.graphics.TypefaceCompatApi26Impl: can't find dynamically referenced class android.graphics.FontFamily
    Note: android.support.v4.media.ParceledListSliceAdapterApi21: can't find dynamically referenced class android.content.pm.ParceledListSlice
    Note: android.support.v4.text.ICUCompat: can't find dynamically referenced class libcore.icu.ICU
    Note: android.support.v4.widget.TextViewCompat$TextViewCompatApi26Impl$1: can't find dynamically referenced class com.android.internal.view.menu.MenuBuilder
    Note: com.google.android.gms.common.util.WorkSourceUtil: can't find dynamically referenced class android.os.WorkSource$WorkChain
    Note: com.google.android.gms.internal.measurement.zztb: can't find dynamically referenced class libcore.io.Memory
    Note: com.google.android.gms.internal.measurement.zztb: can't find dynamically referenced class org.robolectric.Robolectric
    Note: com.google.android.gms.internal.measurement.zzua: can't find dynamically referenced class com.google.protobuf.ExtensionRegistry
    Note: com.google.android.gms.internal.measurement.zzub: can't find dynamically referenced class com.google.protobuf.Extension
    Note: com.google.android.gms.internal.measurement.zzue: can't find dynamically referenced class com.google.protobuf.ExtensionSchemaFull
    Note: com.google.android.gms.internal.measurement.zzvk: can't find dynamically referenced class com.google.protobuf.DescriptorMessageInfoFactory
    Note: com.google.android.gms.internal.measurement.zzvs: can't find dynamically referenced class com.google.protobuf.MapFieldSchemaFull
    Note: com.google.android.gms.internal.measurement.zzwe: can't find dynamically referenced class com.google.protobuf.NewInstanceSchemaFull
    Note: com.google.android.gms.internal.measurement.zzwn: can't find dynamically referenced class com.google.protobuf.GeneratedMessage
    Note: com.google.android.gms.internal.measurement.zzwn: can't find dynamically referenced class com.google.protobuf.UnknownFieldSetSchema
    Note: com.google.android.gms.measurement.internal.zzda: can't find dynamically referenced class com.google.android.gms.tagmanager.TagManagerService
    Note: com.google.android.gms.measurement.internal.zzq: can't find dynamically referenced class android.os.SystemProperties
    Note: com.google.auto.common.MoreTypes: can't find dynamically referenced class javax.lang.model.type.IntersectionType
    Note: com.google.common.util.concurrent.MoreExecutors: can't find dynamically referenced class com.google.appengine.api.ThreadManager
    Note: com.google.common.util.concurrent.MoreExecutors: can't find dynamically referenced class com.google.apphosting.api.ApiProxy
    Note: com.google.firebase.iid.FirebaseInstanceId$zza: can't find dynamically referenced class com.google.firebase.messaging.FirebaseMessaging
    Note: kotlin.internal.PlatformImplementationsKt: can't find dynamically referenced class kotlin.internal.jdk8.JDK8PlatformImplementations
    Note: kotlin.internal.PlatformImplementationsKt: can't find dynamically referenced class kotlin.internal.JRE8PlatformImplementations
    Note: kotlin.internal.PlatformImplementationsKt: can't find dynamically referenced class kotlin.internal.jdk7.JDK7PlatformImplementations
    Note: kotlin.internal.PlatformImplementationsKt: can't find dynamically referenced class kotlin.internal.JRE7PlatformImplementations
    Note: kotlin.jvm.internal.Reflection: can't find dynamically referenced class kotlin.reflect.jvm.internal.ReflectionFactoryImpl
    Note: the configuration refers to the unknown class 'com.facebook.AccessToken'
    Note: the configuration refers to the unknown class 'com.facebook.CallbackManager'
    Note: the configuration refers to the unknown class 'com.facebook.FacebookCallback'
    Note: the configuration refers to the unknown class 'com.facebook.FacebookException'
    Note: the configuration refers to the unknown class 'com.facebook.FacebookSdk'
    Note: the configuration refers to the unknown class 'com.facebook.GraphRequest'
    Note: the configuration refers to the unknown class 'com.facebook.GraphResponse'
    Note: the configuration refers to the unknown class 'com.facebook.HttpMethod'
    Note: the configuration refers to the unknown class 'com.facebook.appevents.AppEventsLogger'
    Note: the configuration refers to the unknown class 'com.facebook.login.DefaultAudience'
    Note: the configuration refers to the unknown class 'com.facebook.login.LoginManager'
    Note: the configuration refers to the unknown class 'com.facebook.login.LoginResult'
    Note: the configuration refers to the unknown class 'com.facebook.share.Sharer'
    Note: the configuration refers to the unknown class 'com.facebook.share.model.AppInviteContent'
    Note: the configuration refers to the unknown class 'com.facebook.share.model.GameRequestContent'
    Note: the configuration refers to the unknown class 'com.facebook.share.model.ShareLinkContent'
    Note: the configuration refers to the unknown class 'com.facebook.share.widget.AppInviteDialog'
    Note: the configuration refers to the unknown class 'com.facebook.share.widget.GameRequestDialog'
    Note: the configuration refers to the unknown class 'com.facebook.share.widget.ShareDialog'
    Note: the configuration keeps the entry point 'com.google.android.gms.common.api.AvailabilityException { AvailabilityException(android.support.v4.util.ArrayMap); }', but not the descriptor class 'android.support.v4.util.ArrayMap'
    Note: the configuration keeps the entry point 'com.google.firebase.analytics.connector.AnalyticsConnectorImpl { com.google.firebase.analytics.connector.AnalyticsConnector getInstance(com.google.firebase.FirebaseApp,android.content.Context,com.google.firebase.events.Subscriber); }', but not the descriptor class 'com.google.firebase.events.Subscriber'
    Note: the configuration keeps the entry point 'com.google.firebase.analytics.connector.AnalyticsConnectorImpl { void zza(com.google.firebase.events.Event); }', but not the descriptor class 'com.google.firebase.events.Event'
    Note: the configuration keeps the entry point 'com.google.firebase.analytics.connector.internal.zzb { java.lang.Object create(com.google.firebase.components.ComponentContainer); }', but not the descriptor class 'com.google.firebase.components.ComponentContainer'
    Note: the configuration keeps the entry point 'com.google.firebase.analytics.connector.zzb { void handle(com.google.firebase.events.Event); }', but not the descriptor class 'com.google.firebase.events.Event'
    Note: the configuration keeps the entry point 'com.google.firebase.iid.zzb { void zza(com.google.firebase.iid.zzb,android.content.Intent); }', but not the descriptor class 'com.google.firebase.iid.zzb'
    Note: there were 19 references to unknown classes.
      You should check your configuration for typos.
    Note: there were 6 unkept descriptor classes in kept class members.
      You should consider explicitly keeping the mentioned classes
      (using '-keep').
    Note: there were 29 unresolved dynamic references to classes or interfaces.
      You should check if you need to specify additional program jars.
Ignoring unused library classes...
  Original number of library classes: 3471
  Final number of library classes:    1135
Shrinking...
Removing unused program classes and class elements...
  Original number of program classes: 5012
  Final number of program classes:    1910
Optimizing...
  Number of finalized classes:                 243
  Number of vertically merged classes:         18
  Number of horizontally merged classes:       49
  Number of removed write-only fields:         136
  Number of privatized fields:                 425
  Number of inlined constant fields:           69
  Number of privatized methods:                256
  Number of staticized methods:                196
  Number of finalized methods:                 1655
  Number of removed method parameters:         247
  Number of inlined constant parameters:       37
  Number of inlined constant return values:    34
  Number of inlined short method calls:        368
  Number of inlined unique method calls:       593
  Number of inlined tail recursion calls:      0
  Number of merged code blocks:                21
  Number of variable peephole optimizations:   2151
  Number of arithmetic peephole optimizations: 0   (disabled)
  Number of cast peephole optimizations:       33
  Number of field peephole optimizations:      13
  Number of branch peephole optimizations:     722
  Number of string peephole optimizations:     291
  Number of simplified instructions:           572
  Number of removed instructions:              4190
  Number of removed local variables:           176
  Number of removed exception blocks:          417
  Number of optimized local variable frames:   2354
Shrinking...
Removing unused program classes and class elements...
  Original number of program classes: 1910
  Final number of program classes:    1816
Obfuscating...
Printing mapping to [/tmp/job8656952039763637443/build/mapping.txt]...
Writing output...
Preparing output jar [/tmp/job8656952039763637443/build/dmengine.jar]
  Copying resources from program jar [/tmp/job8656952039763637443/build/tmp57ab4d39-14f3-4364-95a9-de9d19850c82rjava/R.jar]
  Copying resources from program jar [/tmp/job8656952039763637443/upload/firebase-core/lib/android/com-google-firebase-firebase-analytics-16.3.0.jar]
  Copying resources from program jar [/var/extender/sdk/45635ad26f85009c52905724e242cc92dd252146/defoldsdk/share/java/sound_android.jar]
    Warning: can't write resource [META-INF/MANIFEST.MF] (Duplicate zip entry [sound_android.jar:META-INF/MANIFEST.MF])
  Copying resources from program jar [/tmp/job8656952039763637443/upload/firebase-core/lib/android/com-google-firebase-firebase-measurement-connector-impl-17.0.5.jar]
  Copying resources from program jar [/tmp/job8656952039763637443/upload/firebase-core/lib/android/com-google-android-gms-play-services-measurement-sdk-api-16.3.0.jar]
  Copying resources from program jar [/tmp/job8656952039763637443/upload/firebase-core/lib/android/com-google-android-gms-play-services-measurement-base-16.3.0.jar]
    Warning: can't write resource [META-INF/MANIFEST.MF] (Duplicate zip entry [com-google-android-gms-play-services-measurement-base-16.3.0.jar:META-INF/MANIFEST.MF])
  Copying resources from program jar [/tmp/job8656952039763637443/upload/firebase-core/lib/android/com-google-firebase-firebase-iid-17.0.3.jar]
    Warning: can't write resource [META-INF/MANIFEST.MF] (Duplicate zip entry [com-google-firebase-firebase-iid-17.0.3.jar:META-INF/MANIFEST.MF])
  Copying resources from program jar [/var/extender/sdk/45635ad26f85009c52905724e242cc92dd252146/defoldsdk/share/java/glfw_android.jar]
    Warning: can't write resource [META-INF/MANIFEST.MF] (Duplicate zip entry [glfw_android.jar:META-INF/MANIFEST.MF])
  Copying resources from program jar [/tmp/job8656952039763637443/upload/firebase-core/lib/android/com-google-firebase-firebase-core-16.0.7.jar]
    Warning: can't write resource [META-INF/MANIFEST.MF] (Duplicate zip entry [com-google-firebase-firebase-core-16.0.7.jar:META-INF/MANIFEST.MF])
  Copying resources from program jar [/var/extender/sdk/45635ad26f85009c52905724e242cc92dd252146/defoldsdk/ext/share/java/android-support-v4.jar]
  Copying resources from program jar [/var/extender/sdk/45635ad26f85009c52905724e242cc92dd252146/defoldsdk/share/java/gamesys_android.jar]
    Warning: can't write resource [META-INF/MANIFEST.MF] (Duplicate zip entry [gamesys_android.jar:META-INF/MANIFEST.MF])
  Copying resources from program jar [/var/extender/sdk/45635ad26f85009c52905724e242cc92dd252146/defoldsdk/share/java/iac_android.jar]
    Warning: can't write resource [META-INF/MANIFEST.MF] (Duplicate zip entry [iac_android.jar:META-INF/MANIFEST.MF])
  Copying resources from program jar [/tmp/job8656952039763637443/upload/firebase-core/lib/android/com-google-android-gms-play-services-stats-16.0.1.jar]
    Warning: can't write resource [META-INF/MANIFEST.MF] (Duplicate zip entry [com-google-android-gms-play-services-stats-16.0.1.jar:META-INF/MANIFEST.MF])
  Copying resources from program jar [/tmp/job8656952039763637443/upload/firebase-core/lib/android/com-google-firebase-firebase-analytics-impl-16.3.0.jar]
  Copying resources from program jar [/var/extender/sdk/45635ad26f85009c52905724e242cc92dd252146/defoldsdk/ext/share/java/android-support-multidex.jar]
    Warning: can't write resource [META-INF/MANIFEST.MF] (Duplicate zip entry [android-support-multidex.jar:META-INF/MANIFEST.MF])
  Copying resources from program jar [/tmp/job8656952039763637443/upload/firebase-core/lib/android/com-google-firebase-firebase-common-16.0.3.jar]
  Copying resources from program jar [/var/extender/sdk/45635ad26f85009c52905724e242cc92dd252146/defoldsdk/ext/share/java/in-app-purchasing-2.0.61.jar]
    Warning: can't write resource [META-INF/MANIFEST.MF] (Duplicate zip entry [in-app-purchasing-2.0.61.jar:META-INF/MANIFEST.MF])
  Copying resources from program jar [/tmp/job8656952039763637443/upload/firebase-core/lib/android/com-google-android-gms-play-services-measurement-api-16.3.0.jar]
  Copying resources from program jar [/tmp/job8656952039763637443/upload/firebase-core/lib/android/com-google-firebase-firebase-measurement-connector-17.0.1.jar]
    Warning: can't write resource [META-INF/MANIFEST.MF] (Duplicate zip entry [com-google-firebase-firebase-measurement-connector-17.0.1.jar:META-INF/MANIFEST.MF])
  Copying resources from program jar [/var/extender/sdk/45635ad26f85009c52905724e242cc92dd252146/defoldsdk/share/java/iap_android.jar]
    Warning: can't write resource [META-INF/MANIFEST.MF] (Duplicate zip entry [iap_android.jar:META-INF/MANIFEST.MF])
  Copying resources from program jar [/tmp/job8656952039763637443/upload/firebase-core/lib/android/com-google-firebase-firebase-iid-interop-16.0.1.jar]
    Warning: can't write resource [META-INF/MANIFEST.MF] (Duplicate zip entry [com-google-firebase-firebase-iid-interop-16.0.1.jar:META-INF/MANIFEST.MF])
    Line 331: undefined reference to 'std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(char const*, std::allocator<char> const&)'
    Line 331: undefined reference to 'std::basic_string<char, std::char_traits<char>, std::allocator<char> >::~basic_string()'
    Line 331: undefined reference to 'std::string::_Rep::_S_empty_rep_storage'
    Line 331: undefined reference to 'std::basic_string<char, std::char_traits<char>, std::allocator<char> >::basic_string(std::string const&)'
    Line 331: undefined reference to 'std::string::assign(std::string const&)'
    Line 331: undefined reference to 'std::_Rb_tree_increment(std::_Rb_tree_node_base const*)'
    Line 331: undefined reference to 'std::__throw_length_error(char const*)'
    Line 331: undefined reference to 'std::__detail::_List_node_base::_M_hook(std::__detail::_List_node_base*)'
    Line 331: undefined reference to 'std::__detail::_List_node_base::_M_unhook()'
    Line 331: undefined reference to 'std::string::append(unsigned int, char)'
    Line 331: undefined reference to 'std::string::append(std::string const&)'
    Line 331: undefined reference to 'std::string::insert(unsigned int, std::string const&, unsigned int, unsigned int)'
    Line 331: undefined reference to 'std::string::push_back(char)'
    Line 331: undefined reference to 'std::string::erase(unsigned int, unsigned int)'
    Line 331: undefined reference to 'std::_Rb_tree_decrement(std::_Rb_tree_node_base*)'
    Line 331: undefined reference to 'std::_Rb_tree_insert_and_rebalance(bool, std::_Rb_tree_node_base*, std::_Rb_tree_node_base*, std::_Rb_tree_node_base&)'
    Line 331: undefined reference to 'std::_Rb_tree_increment(std::_Rb_tree_node_base*)'
    Line 331: undefined reference to 'std::_Rb_tree_rebalance_for_erase(std::_Rb_tree_node_base*, std::_Rb_tree_node_base&)'
    Line 331: undefined reference to 'std::string::_M_mutate(unsigned int, unsigned int, unsigned int)'
    Line 331: undefined reference to 'std::string::append(char const*, unsigned int)'
    Line 331: undefined reference to 'std::string::substr(unsigned int, unsigned int) const'
    Line 331: undefined reference to 'std::string::swap(std::string&)'
    Line 331: undefined reference to 'std::string::assign(char const*, unsigned int)'
    Line 331: undefined reference to 'std::__throw_bad_function_call()'
    Line 331: clang++: error: linker command failed with exit code 1 (use -v to see invocation)
AGulev commented 4 years ago

Fixed in the latest release 1.2.0