Jump to content
Unity Insider Forum

MissingMethodException: Method not found


dewa

Recommended Posts

Hallo Leute, wenn ich meine app "builde" bekomme ich folgende Errer Meldung:

 

MissingMethodException: Method not found: 'UnityEditor.PlayerSettings.get_applicationIdentifier'.
Rethrow as TypeInitializationException: An exception was thrown by the type initializer for GooglePlayServices.PlayServicesResolver
System.Runtime.CompilerServices.RuntimeHelpers.RunClassConstructor (RuntimeTypeHandle type) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Runtime.CompilerServices/RuntimeHelpers.cs:101)
UnityEditor.EditorAssemblies.ProcessEditorInitializeOnLoad (System.Type type) (at C:/buildslave/unity/build/Editor/Mono/EditorAssemblies.cs:130)
Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.
System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:232)
System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) (at /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Reflection/MethodBase.cs:115)
UnityEditor.AssetPostprocessingInternal.PostprocessAllAssets (System.String[] importedAssets, System.String[] addedAssets, System.String[] deletedAssets, System.String[] movedAssets, System.String[] movedFromPathAssets) (at C:/buildslave/unity/build/Editor/Mono/AssetPostprocessor.cs:25)
UnityEditor.HostView:OnGUI()

 

Hatt irgendjemand eine Lösung oder ein Vorschlag? :(

 

Link zu diesem Kommentar
Auf anderen Seiten teilen

Also ich bekomme noch 2 Weiter Fehler. Ich weiß nicht ob die vielleicht miteinander zusammen hängen.

2 Fehler:

CommandInvokationFailure: Failed to re-package resources.
C:\Users\DeWa\AppData\Local\Android\sdk\build-tools\23.0.2\aapt.exe package --auto-add-overlay -v -f -m -J "gen" -M "AndroidManifest.xml" -S "res" -I "C:/Users/DeWa/AppData/Local/Android/sdk\platforms\android-25\android.jar" -F bin/resources.ap_ --extra-packages android.support.graphics.drawable.animated:android.support.v7.appcompat:android.support.v7.cardview:android.support.customtabs:com.facebook:com.facebook:com.facebook.android:com.facebook.android:android.support.v4:android.support.graphics.drawable:com.unity3d.ads -S "E:\Ifit\New Unity Project 4\Temp\StagingArea\android-libraries\animated-vector-drawable-23.4.0\res" -S "E:\Ifit\New Unity Project 4\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res" -S "E:\Ifit\New Unity Project 4\Temp\StagingArea\android-libraries\cardview-v7-23.4.0\res" -S "E:\Ifit\New Unity Project 4\Temp\StagingArea\android-libraries\customtabs-23.4.0\res" -S "E:\Ifit\New Unity Project 4\Temp\StagingArea\android-libraries\facebook-android-sdk-4.17.0\res" -S "E:\Ifit\New Unity Project 4\Temp\StagingArea\android-libraries\facebook-android-sdk-4.7.0\res" -S "E:\Ifit\New Unity Project 4\Temp\StagingArea\android-libraries\facebook-android-wrapper-7.9.4\res" -S "E:\Ifit\New Unity Project 4\Temp\StagingArea\android-libraries\facebook-android-wrapper-release\res" -S "E:\Ifit\New Unity Project 4\Temp\StagingArea\android-libraries\support-v4-23.4.0\res" -S "E:\Ifit\New Unity Project 4\Temp\StagingArea\android-libraries\support-vector-drawable-23.4.0\res" -S "E:\Ifit\New Unity Project 4\Temp\StagingArea\android-libraries\UnityAds\res"
stderr[
E:\Ifit\New Unity Project 4\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\abc_alert_dialog_button_bar_material.xml:18: note: removing attribute http://schemas.android.com/apk/res/android:layoutDirection from <android.support.v7.widget.ButtonBarLayout>
E:\Ifit\New Unity Project 4\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\abc_alert_dialog_button_bar_material.xml: note: using v17 attributes; synthesizing resource com.DeWa.IFit:layout/abc_alert_dialog_button_bar_material for configuration v17.
E:\Ifit\New Unity Project 4\Temp\StagingArea\android-libraries\appcompat-v7-23.4.0\res\layout\abc_alert_dialog_material.xml:48: note: removing attribute http://schemas.android.com/apk/res/android:textAlignment from <android.support.v7.widget.DialogTitle
 
3 Fehler:
 
System.TypeInitializationException: An exception was thrown by the type initializer for GooglePlayServices.PlayServicesResolver ---> System.MissingMethodException: Method not found: 'UnityEditor.PlayerSettings.get_applicationIdentifier'.
  --- End of inner exception stack trace ---
  at (wrapper managed-to-native) System.Runtime.CompilerServices.RuntimeHelpers:RunClassConstructor (intptr)
  at System.Runtime.CompilerServices.RuntimeHelpers.RunClassConstructor (RuntimeTypeHandle type) [0x00026] in /Users/builduser/buildslave/mono/build/mcs/class/corlib/System.Runtime.CompilerServices/RuntimeHelpers.cs:101
  at UnityEditor.EditorAssemblies.ProcessEditorInitializeOnLoad (System.Type type) [0x00008] in C:\buildslave\unity\build\Editor\Mono\EditorAssemblies.cs:130
UnityEditor.EditorAssemblies:ProcessInitializeOnLoadAttributes()
 
 
 
 
Link zu diesem Kommentar
Auf anderen Seiten teilen

vor 12 Minuten schrieb Zer0Cool:

Nach kurzem stöbern im Netz nach dieser Meldung vermute ich einen Versionskonflikt zwischen Unity und dem "GooglePlayServices" (oder FaceBookUnity SDK), je nachdem, was genau du da in Unity eingebunden hast. Kurzum die beiden Versionen "passen" nicht zusammen.

Kann sein, muss nicht. Ich hatte mich die Tage auch mit den PlayService beschäftigt und meine Mühe Not gehabt.

@dewa lies mal das Thema von mir:

Wenn ich mich kurz selbst zitieren darf!^^

Zitat

So, für alle die auch ne Lösung suchen. Zumeißt wird das Problem auf das FacebookSDK und GooglePlayGames geschoben. Ich hab das selbe Problem mit GooglyMobileAds und GooglePlayGames gehabt. Ich hatte mehrere doppelte Dateien in verschieden Versionen. Sucht im Asset Ordner mal nach dem Stichwort "play" und "service".

Bei mir waren diese Dateien doppelt, wie gesagt mit unterschiedlicher Version:

play-services-ads-11.4.0

play-services-auth-11.4.0

play.services-base-11.4.0

play-services-drive-11.4.0

play-services-games-11.4.0

Grüße von Kojote

 

Link zu diesem Kommentar
Auf anderen Seiten teilen

Archiviert

Dieses Thema ist jetzt archiviert und für weitere Antworten gesperrt.

×
×
  • Neu erstellen...