Google Play Games Service

C

coreytaylor211

Fortgeschrittenes Mitglied
5
Hallo ich wollte mal fragen ob einer genauer weiß wie das mit dem Google Play Service genau funktioniert, also wie man das in eine App einbaut.

In Google finde ich nicht das richtige und wenn nichts vollständiges.
Es könnte aber auch daran liegen das ich nicht genau weiß worauf ich achten muss.

Vielen Dank schonmal im Vorraus.
 
oO das meinst du nicht ernst, oder?
https://developers.google.com/games/services/

Ich kann dir versprechen, dass wenn du die Seiten sorgfältig mit ein bisschen Geduld und Ruhe durcharbeitest, du ohne viel Frust zum Ziel kommst.
Wenn du sagst was du vorhast, wird es einfacher dir zu sagen, auf was du achten musst.
Ein bisschen Eigeninitiative ist allerdings schon gefragt, wenn man sich an Themen wie GPS, IAB, oder einen Multiplayer, etc, heranwagt.
 
  • Danke
Reaktionen: coreytaylor211
Vielen Dank schomal für die schnelle Antwort. Ich habe eigentlich nur vor in meinem Spiel eine Highscore liste zu Verfügung zu stellen über den Google Service.

Hast du da ein paar Tipps für mich,du meintest ja du könntest mir sagen wodrauf ich achten soll.
 
Okay, also empfehlen würde ich dir auf jeden Fall mit Android Studio zu arbeiten (da dort das Einbinden der PlayServices am leichtesten ist).
Die Highscores stellst du über ein Leaderboard zur Verfügung. Eine genau Anleitung, wie man das macht, findest du hier:
https://developers.google.com/games/services/common/concepts/leaderboards

Aus eigener Erfahrung empfehle ich dir dich an die Google Doku zu halten. Habe schon das ein oder andere Tutorial im Netz gesehen was nicht so wirklich hilfreich bzw. veraltet war. Lese dir die Doku zu den Leaderboards 1-2x komplett durch und falls noch Fragen offen sind -> fragen. Auf-Teufel-komm-raus-einfach-anfangen ist meist nicht die beste Vorgehensweise. :)

Btw: Warum nur einen Highscore und nicht gleich mit Achievements? https://developers.google.com/games/services/common/concepts/achievements
Ich bin mir fast sich, dass du jetzt auch Achievements in deinem Spiel einbinden möchtest, und deswegen ist es manchmal sinnvoll in die Doku zu schauen - sie nimmt dir viel, viel Arbeit ab und bringt dich auf neue Ideen. Aber ich kenne das Phänomen der Lesefaulheit und kann es verstehen, wenn viele (gerade Leute, die neu in Android sind) es noch nicht auf dem Radar haben, wie wichtig und gut die Doku ist.. :)
 
Zuletzt bearbeitet:
  • Danke
Reaktionen: coreytaylor211
So vielen Dank schonmal für die ganzen Tipps hat alles super geklappt bis auch eine Sache. Und zwar wie bekomme ich den Google Play Service in mein Projekt ?

Ich habe es laut Anleitung so gemacht
Code:
dependencies {
    compile 'com.android.support:appcompat-v7:21.0.3'
    compile 'com.google.android.gms:play-services:6.5.87'


}
aber da kommt bei mir immer ein Fehler, oder besser gesagt 101 !

Hier mal die Fehler die kommen :
Code:
Information:Gradle tasks [:app:generateDebugSources, :app:generateDebugTestSources]
:app:preBuild
:app:preDebugBuild
:app:checkDebugManifest
:app:preReleaseBuild
:app:prepareComAndroidSupportAppcompatV72103Library UP-TO-DATE
:app:prepareComAndroidSupportSupportV42103Library UP-TO-DATE
:app:prepareComGoogleAndroidGmsPlayServices6587Library UP-TO-DATE
:app:prepareDebugDependencies
:app:compileDebugAidl UP-TO-DATE
:app:compileDebugRenderscript UP-TO-DATE
:app:generateDebugBuildConfig UP-TO-DATE
:app:generateDebugAssets UP-TO-DATE
:app:mergeDebugAssets UP-TO-DATE
:app:generateDebugResValues UP-TO-DATE
:app:generateDebugResources UP-TO-DATE
:app:mergeDebugResources
C:\Users\phillipp\Desktop\test1\app\build\intermediates\exploded-aar\com.android.support\appcompat-v7\21.0.3\res\drawable-mdpi\abc_ab_share_pack_holo_dark.9.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
C:\Users\phillipp\Desktop\test1\app\build\intermediates\exploded-aar\com.android.support\appcompat-v7\21.0.3\res\drawable-xhdpi\abc_ab_share_pack_holo_dark.9.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
C:\Users\phillipp\Desktop\test1\app\build\intermediates\exploded-aar\com.android.support\appcompat-v7\21.0.3\res\drawable-hdpi\abc_spinner_mtrl_am_alpha.9.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
C:\Users\phillipp\Desktop\test1\app\build\intermediates\exploded-aar\com.android.support\appcompat-v7\21.0.3\res\drawable-hdpi\abc_ab_share_pack_holo_light.9.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
C:\Users\phillipp\Desktop\test1\app\build\intermediates\exploded-aar\com.android.support\appcompat-v7\21.0.3\res\drawable-hdpi\abc_ab_share_pack_holo_dark.9.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
C:\Users\phillipp\Desktop\test1\app\build\intermediates\exploded-aar\com.android.support\appcompat-v7\21.0.3\res\drawable-xhdpi\abc_ab_share_pack_holo_light.9.png: libpng warning: iCCP: Not recognizing known sRGB profile that has been edited
:app:processDebugManifest
:app:processDebugResources
C:\Users\phillipp\Desktop\test1\app\build\intermediates\exploded-aar\com.android.support\appcompat-v7\21.0.3\res\values-v11\values.xml
Error:(50, 21) No resource found that matches the given name: attr 'android:actionModeShareDrawable'.
Error:(50, 21) No resource found that matches the given name: attr 'android:actionModeShareDrawable'.
Error:(50, 21) No resource found that matches the given name: attr 'android:actionModeShareDrawable'.
Error:(50, 21) No resource found that matches the given name: attr 'android:actionModeShareDrawable'.
C:\Users\phillipp\Desktop\test1\app\build\intermediates\exploded-aar\com.android.support\appcompat-v7\21.0.3\res\values-v14\values.xml
Error:(9, 21) No resource found that matches the given name: attr 'android:actionModeShareDrawable'.
Error:(9, 21) No resource found that matches the given name: attr 'android:actionModeShareDrawable'.
Error:(9, 21) No resource found that matches the given name: attr 'android:actionModeShareDrawable'.
Error:(9, 21) No resource found that matches the given name: attr 'android:actionModeShareDrawable'.
C:\Users\phillipp\Desktop\test1\app\build\intermediates\exploded-aar\com.android.support\appcompat-v7\21.0.3\res\values-v21\values.xml
Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Body1'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Body2'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Button'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Caption'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Display1'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Display2'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Display3'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Display4'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Headline'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Inverse'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Large'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Large.Inverse'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.PopupMenu.Large'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.PopupMenu.Small'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Medium'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Medium.Inverse'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Menu'.
Error:Error retrieving parent for item: No resource found that matches the given name '@android:TextAppearance.Material.SearchResult.Subtitle'.
Error:Error retrieving parent for item: No resource found that matches the given name '@android:TextAppearance.Material.SearchResult.Title'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Small'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Small.Inverse'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Subhead'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Title'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionBar.Menu'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionBar.Subtitle'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionBar.Subtitle.Inverse'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionBar.Title'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionBar.Title.Inverse'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionMode.Subtitle'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionMode.Title'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.PopupMenu.Large'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.PopupMenu.Small'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Button'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionBar.Subtitle'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionBar.Title'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:ThemeOverlay.Material'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:ThemeOverlay.Material.ActionBar'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:ThemeOverlay.Material.Dark'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:ThemeOverlay.Material.Dark.ActionBar'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:ThemeOverlay.Material.Light'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionBar.TabText'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionBar.TabView'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionButton'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionButton.CloseMode'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionButton.Overflow'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.AutoCompleteTextView'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.DropDownItem.Spinner'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Light.ActionBar.TabText'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Light.ActionBar.TabText'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Light.ActionBar.TabView'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.AutoCompleteTextView'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Light.PopupMenu'.
Error:(298, 21) No resource found that matches the given name: attr 'android:overlapAnchor'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ListPopupWindow'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ListView.DropDown'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ListView'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.PopupMenu'.
Error:(298, 21) No resource found that matches the given name: attr 'android:overlapAnchor'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ProgressBar'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ProgressBar.Horizontal'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Spinner'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Spinner'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Toolbar.Button.Navigation'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:Theme.Material'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:Theme.Material.Dialog'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:Theme.Material.Light'.
Error:Error retrieving parent for item: No resource found that matches the given name 'android:Theme.Material.Light.Dialog'.
Error:(144, 21) No resource found that matches the given name: attr 'android:colorAccent'.
Error:(146, 21) No resource found that matches the given name: attr 'android:colorControlActivated'.
Error:(147, 21) No resource found that matches the given name: attr 'android:colorControlHighlight'.
Error:(145, 21) No resource found that matches the given name: attr 'android:colorControlNormal'.
Error:(142, 21) No resource found that matches the given name: attr 'android:colorPrimary'.
Error:(143, 21) No resource found that matches the given name: attr 'android:colorPrimaryDark'.
Error:(144, 21) No resource found that matches the given name: attr 'android:colorAccent'.
Error:(146, 21) No resource found that matches the given name: attr 'android:colorControlActivated'.
Error:(147, 21) No resource found that matches the given name: attr 'android:colorControlHighlight'.
Error:(145, 21) No resource found that matches the given name: attr 'android:colorControlNormal'.
Error:(142, 21) No resource found that matches the given name: attr 'android:colorPrimary'.
Error:(143, 21) No resource found that matches the given name: attr 'android:colorPrimaryDark'.
Error:(144, 21) No resource found that matches the given name: attr 'android:colorAccent'.
Error:(146, 21) No resource found that matches the given name: attr 'android:colorControlActivated'.
Error:(147, 21) No resource found that matches the given name: attr 'android:colorControlHighlight'.
Error:(145, 21) No resource found that matches the given name: attr 'android:colorControlNormal'.
Error:(142, 21) No resource found that matches the given name: attr 'android:colorPrimary'.
Error:(143, 21) No resource found that matches the given name: attr 'android:colorPrimaryDark'.
Error:(144, 21) No resource found that matches the given name: attr 'android:colorAccent'.
Error:(146, 21) No resource found that matches the given name: attr 'android:colorControlActivated'.
Error:(147, 21) No resource found that matches the given name: attr 'android:colorControlHighlight'.
Error:(145, 21) No resource found that matches the given name: attr 'android:colorControlNormal'.
Error:(142, 21) No resource found that matches the given name: attr 'android:colorPrimary'.
Error:(143, 21) No resource found that matches the given name: attr 'android:colorPrimaryDark'.
Error:Execution failed for task ':app:processDebugResources'.
> com.android.ide.common.internal.LoggedErrorException: Failed to run command:
    J:\Users\phillipp\AppData\Local\Android\sdk\build-tools\21.1.2\aapt.exe package -f --no-crunch -I J:\Users\phillipp\AppData\Local\Android\sdk\platforms\android-19\android.jar -M C:\Users\phillipp\Desktop\test1\app\build\intermediates\manifests\full\debug\AndroidManifest.xml -S C:\Users\phillipp\Desktop\test1\app\build\intermediates\res\debug -A C:\Users\phillipp\Desktop\test1\app\build\intermediates\assets\debug -m -J C:\Users\phillipp\Desktop\test1\app\build\generated\source\r\debug -F C:\Users\phillipp\Desktop\test1\app\build\intermediates\res\resources-debug.ap_ --debug-mode --custom-package de.androidappdev.test -0 apk --output-text-symbols C:\Users\phillipp\Desktop\test1\app\build\intermediates\symbols\debug
Error Code:
    1
Output:
    C:\Users\phillipp\Desktop\test1\app\build\intermediates\res\debug\values-v21\values.xml:5: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material'.
    C:\Users\phillipp\Desktop\test1\app\build\intermediates\res\debug\values-v21\values.xml:6: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Body1'.
    C:\Users\phillipp\Desktop\test1\app\build\intermediates\res\debug\values-v21\values.xml:7: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Body2'.
    C:\Users\phillipp\Desktop\test1\app\build\intermediates\res\debug\values-v21\values.xml:8: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Button'.
    C:\Users\phillipp\Desktop\test1\app\build\intermediates\res\debug\values-v21\values.xml:9: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Caption'.
    C:\Users\phillipp\Desktop\test1\app\build\intermediates\res\debug\values-v21\values.xml:10: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Display1'.
    C:\Users\phillipp\Desktop\test1\app\build\intermediates\res\debug\values-v21\values.xml:11: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Display2'.
    C:\Users\phillipp\Desktop\test1\app\build\intermediates\res\debug\values-v21\values.xml:12: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Display3'.
    C:\Users\phillipp\Desktop\test1\app\build\intermediates\res\debug\values-v21\values.xml:13: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Display4'.
    C:\Users\phillipp\Desktop\test1\app\build\intermediates\res\debug\values-v21\values.xml:14: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Headline'.
    C:\Users\phillipp\Desktop\test1\app\build\intermediates\res\debug\values-v21\values.xml:15: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Inverse'.
    C:\Users\phillipp\Desktop\test1\app\build\intermediates\res\debug\values-v21\values.xml:16: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Large'.
    C:\Users\phillipp\Desktop\test1\app\build\intermediates\res\debug\values-v21\values.xml:17: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Large.Inverse'.
    C:\Users\phillipp\Desktop\test1\app\build\intermediates\res\debug\values-v21\values.xml:18: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.PopupMenu.Large'.
    C:\Users\phillipp\Desktop\test1\app\build\intermediates\res\debug\values-v21\values.xml:19: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.PopupMenu.Small'.
    C:\Users\phillipp\Desktop\test1\app\build\intermediates\res\debug\values-v21\values.xml:20: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Medium'.
    C:\Users\phillipp\Desktop\test1\app\build\intermediates\res\debug\values-v21\values.xml:21: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Medium.Inverse'.
    C:\Users\phillipp\Desktop\test1\app\build\intermediates\res\debug\values-v21\values.xml:22: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Menu'.
    C:\Users\phillipp\Desktop\test1\app\build\intermediates\res\debug\values-v21\values.xml:23: error: Error retrieving parent for item: No resource found that matches the given name '@android:TextAppearance.Material.SearchResult.Subtitle'.
    C:\Users\phillipp\Desktop\test1\app\build\intermediates\res\debug\values-v21\values.xml:24: error: Error retrieving parent for item: No resource found that matches the given name '@android:TextAppearance.Material.SearchResult.Title'.
    C:\Users\phillipp\Desktop\test1\app\build\intermediates\res\debug\values-v21\values.xml:25: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Small'.
    C:\Users\phillipp\Desktop\test1\app\build\intermediates\res\debug\values-v21\values.xml:26: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Small.Inverse'.
    C:\Users\phillipp\Desktop\test1\app\build\intermediates\res\debug\values-v21\values.xml:27: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Subhead'.
    C:\Users\phillipp\Desktop\test1\app\build\intermediates\res\debug\values-v21\values.xml:28: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Title'.
    C:\Users\phillipp\Desktop\test1\app\build\intermediates\res\debug\values-v21\values.xml:29: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionBar.Menu'.
    C:\Users\phillipp\Desktop\test1\app\build\intermediates\res\debug\values-v21\values.xml:30: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionBar.Subtitle'.
    C:\Users\phillipp\Desktop\test1\app\build\intermediates\res\debug\values-v21\values.xml:31: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionBar.Subtitle.Inverse'.
    C:\Users\phillipp\Desktop\test1\app\build\intermediates\res\debug\values-v21\values.xml:32: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionBar.Title'.
    C:\Users\phillipp\Desktop\test1\app\build\intermediates\res\debug\values-v21\values.xml:33: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionBar.Title.Inverse'.
    C:\Users\phillipp\Desktop\test1\app\build\intermediates\res\debug\values-v21\values.xml:34: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionMode.Subtitle'.
    C:\Users\phillipp\Desktop\test1\app\build\intermediates\res\debug\values-v21\values.xml:35: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionMode.Title'.
    C:\Users\phillipp\Desktop\test1\app\build\intermediates\res\debug\values-v21\values.xml:36: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.PopupMenu.Large'.
    C:\Users\phillipp\Desktop\test1\app\build\intermediates\res\debug\values-v21\values.xml:37: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.PopupMenu.Small'.
    C:\Users\phillipp\Desktop\test1\app\build\intermediates\res\debug\values-v21\values.xml:38: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Button'.
    C:\Users\phillipp\Desktop\test1\app\build\intermediates\res\debug\values-v21\values.xml:39: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionBar.Subtitle'.
    C:\Users\phillipp\Desktop\test1\app\build\intermediates\res\debug\values-v21\values.xml:40: error: Error retrieving parent for item: No resource found that matches the given name 'android:TextAppearance.Material.Widget.ActionBar.Title'.
    C:\Users\phillipp\Desktop\test1\app\build\intermediates\res\debug\values-v11\values.xml:45: error: Error: No resource found that matches the given name: attr 'android:actionModeShareDrawable'.
    C:\Users\phillipp\Desktop\test1\app\build\intermediates\res\debug\values-v14\values.xml:10: error: Error: No resource found that matches the given name: attr 'android:actionModeShareDrawable'.
    C:\Users\phillipp\Desktop\test1\app\build\intermediates\res\debug\values-v11\values.xml:51: error: Error: No resource found that matches the given name: attr 'android:actionModeShareDrawable'.
    C:\Users\phillipp\Desktop\test1\app\build\intermediates\res\debug\values-v14\values.xml:17: error: Error: No resource found that matches the given name: attr 'android:actionModeShareDrawable'.
    C:\Users\phillipp\Desktop\test1\app\build\intermediates\res\debug\values-v11\values.xml:57: error: Error: No resource found that matches the given name: attr 'android:actionModeShareDrawable'.
    C:\Users\phillipp\Desktop\test1\app\build\intermediates\res\debug\values-v14\values.xml:24: error: Error: No resource found that matches the given name: attr 'android:actionModeShareDrawable'.
    C:\Users\phillipp\Desktop\test1\app\build\intermediates\res\debug\values-v11\values.xml:63: error: Error: No resource found that matches the given name: attr 'android:actionModeShareDrawable'.
    C:\Users\phillipp\Desktop\test1\app\build\intermediates\res\debug\values-v14\values.xml:31: error: Error: No resource found that matches the given name: attr 'android:actionModeShareDrawable'.
    C:\Users\phillipp\Desktop\test1\app\build\intermediates\res\debug\values-v21\values.xml:45: error: Error retrieving parent for item: No resource found that matches the given name 'android:ThemeOverlay.Material'.
    C:\Users\phillipp\Desktop\test1\app\build\intermediates\res\debug\values-v21\values.xml:46: error: Error retrieving parent for item: No resource found that matches the given name 'android:ThemeOverlay.Material.ActionBar'.
    C:\Users\phillipp\Desktop\test1\app\build\intermediates\res\debug\values-v21\values.xml:49: error: Error retrieving parent for item: No resource found that matches the given name 'android:ThemeOverlay.Material.Dark'.
    C:\Users\phillipp\Desktop\test1\app\build\intermediates\res\debug\values-v21\values.xml:55: error: Error retrieving parent for item: No resource found that matches the given name 'android:ThemeOverlay.Material.Dark.ActionBar'.
    C:\Users\phillipp\Desktop\test1\app\build\intermediates\res\debug\values-v21\values.xml:62: error: Error retrieving parent for item: No resource found that matches the given name 'android:ThemeOverlay.Material.Light'.
    C:\Users\phillipp\Desktop\test1\app\build\intermediates\res\debug\values-v21\values.xml:216: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionBar.TabText'.
    C:\Users\phillipp\Desktop\test1\app\build\intermediates\res\debug\values-v21\values.xml:217: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionBar.TabView'.
    C:\Users\phillipp\Desktop\test1\app\build\intermediates\res\debug\values-v21\values.xml:218: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionButton'.
    C:\Users\phillipp\Desktop\test1\app\build\intermediates\res\debug\values-v21\values.xml:219: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionButton.CloseMode'.
    C:\Users\phillipp\Desktop\test1\app\build\intermediates\res\debug\values-v21\values.xml:220: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ActionButton.Overflow'.
    C:\Users\phillipp\Desktop\test1\app\build\intermediates\res\debug\values-v21\values.xml:228: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.AutoCompleteTextView'.
    C:\Users\phillipp\Desktop\test1\app\build\intermediates\res\debug\values-v21\values.xml:229: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.DropDownItem.Spinner'.
    C:\Users\phillipp\Desktop\test1\app\build\intermediates\res\debug\values-v21\values.xml:230: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Light.ActionBar.TabText'.
    C:\Users\phillipp\Desktop\test1\app\build\intermediates\res\debug\values-v21\values.xml:231: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Light.ActionBar.TabText'.
    C:\Users\phillipp\Desktop\test1\app\build\intermediates\res\debug\values-v21\values.xml:232: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Light.ActionBar.TabView'.
    C:\Users\phillipp\Desktop\test1\app\build\intermediates\res\debug\values-v21\values.xml:233: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.AutoCompleteTextView'.
    C:\Users\phillipp\Desktop\test1\app\build\intermediates\res\debug\values-v21\values.xml:234: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Light.PopupMenu'.
    C:\Users\phillipp\Desktop\test1\app\build\intermediates\res\debug\values-v21\values.xml:237: error: Error: No resource found that matches the given name: attr 'android:overlapAnchor'.
    C:\Users\phillipp\Desktop\test1\app\build\intermediates\res\debug\values-v21\values.xml:239: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ListPopupWindow'.
    C:\Users\phillipp\Desktop\test1\app\build\intermediates\res\debug\values-v21\values.xml:240: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ListView.DropDown'.
    C:\Users\phillipp\Desktop\test1\app\build\intermediates\res\debug\values-v21\values.xml:241: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ListView'.
    C:\Users\phillipp\Desktop\test1\app\build\intermediates\res\debug\values-v21\values.xml:242: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.PopupMenu'.
    C:\Users\phillipp\Desktop\test1\app\build\intermediates\res\debug\values-v21\values.xml:245: error: Error: No resource found that matches the given name: attr 'android:overlapAnchor'.
    C:\Users\phillipp\Desktop\test1\app\build\intermediates\res\debug\values-v21\values.xml:247: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ProgressBar'.
    C:\Users\phillipp\Desktop\test1\app\build\intermediates\res\debug\values-v21\values.xml:248: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.ProgressBar.Horizontal'.
    C:\Users\phillipp\Desktop\test1\app\build\intermediates\res\debug\values-v21\values.xml:249: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Spinner'.
    C:\Users\phillipp\Desktop\test1\app\build\intermediates\res\debug\values-v21\values.xml:250: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Spinner'.
    C:\Users\phillipp\Desktop\test1\app\build\intermediates\res\debug\values-v21\values.xml:255: error: Error retrieving parent for item: No resource found that matches the given name 'android:Widget.Material.Toolbar.Button.Navigation'.
    C:\Users\phillipp\Desktop\test1\app\build\intermediates\res\debug\values-v21\values.xml:256: error: Error retrieving parent for item: No resource found that matches the given name 'android:Theme.Material'.
    C:\Users\phillipp\Desktop\test1\app\build\intermediates\res\debug\values-v21\values.xml:260: error: Error retrieving parent for item: No resource found that matches the given name 'android:Theme.Material.Dialog'.
    C:\Users\phillipp\Desktop\test1\app\build\intermediates\res\debug\values-v21\values.xml:264: error: Error retrieving parent for item: No resource found that matches the given name 'android:Theme.Material.Light'.
    C:\Users\phillipp\Desktop\test1\app\build\intermediates\res\debug\values-v21\values.xml:268: error: Error retrieving parent for item: No resource found that matches the given name 'android:Theme.Material.Light.Dialog'.
    C:\Users\phillipp\Desktop\test1\app\build\intermediates\res\debug\values-v21\values.xml:100: error: Error: No resource found that matches the given name: attr 'android:colorAccent'.
    C:\Users\phillipp\Desktop\test1\app\build\intermediates\res\debug\values-v21\values.xml:102: error: Error: No resource found that matches the given name: attr 'android:colorControlActivated'.
    C:\Users\phillipp\Desktop\test1\app\build\intermediates\res\debug\values-v21\values.xml:103: error: Error: No resource found that matches the given name: attr 'android:colorControlHighlight'.
    C:\Users\phillipp\Desktop\test1\app\build\intermediates\res\debug\values-v21\values.xml:101: error: Error: No resource found that matches the given name: attr 'android:colorControlNormal'.
    C:\Users\phillipp\Desktop\test1\app\build\intermediates\res\debug\values-v21\values.xml:98: error: Error: No resource found that matches the given name: attr 'android:colorPrimary'.
    C:\Users\phillipp\Desktop\test1\app\build\intermediates\res\debug\values-v21\values.xml:99: error: Error: No resource found that matches the given name: attr 'android:colorPrimaryDark'.
    C:\Users\phillipp\Desktop\test1\app\build\intermediates\res\debug\values-v21\values.xml:137: error: Error: No resource found that matches the given name: attr 'android:colorAccent'.
    C:\Users\phillipp\Desktop\test1\app\build\intermediates\res\debug\values-v21\values.xml:139: error: Error: No resource found that matches the given name: attr 'android:colorControlActivated'.
    C:\Users\phillipp\Desktop\test1\app\build\intermediates\res\debug\values-v21\values.xml:140: error: Error: No resource found that matches the given name: attr 'android:colorControlHighlight'.
    C:\Users\phillipp\Desktop\test1\app\build\intermediates\res\debug\values-v21\values.xml:138: error: Error: No resource found that matches the given name: attr 'android:colorControlNormal'.
    C:\Users\phillipp\Desktop\test1\app\build\intermediates\res\debug\values-v21\values.xml:135: error: Error: No resource found that matches the given name: attr 'android:colorPrimary'.
    C:\Users\phillipp\Desktop\test1\app\build\intermediates\res\debug\values-v21\values.xml:136: error: Error: No resource found that matches the given name: attr 'android:colorPrimaryDark'.
    C:\Users\phillipp\Desktop\test1\app\build\intermediates\res\debug\values-v21\values.xml:174: error: Error: No resource found that matches the given name: attr 'android:colorAccent'.
    C:\Users\phillipp\Desktop\test1\app\build\intermediates\res\debug\values-v21\values.xml:176: error: Error: No resource found that matches the given name: attr 'android:colorControlActivated'.
    C:\Users\phillipp\Desktop\test1\app\build\intermediates\res\debug\values-v21\values.xml:177: error: Error: No resource found that matches the given name: attr 'android:colorControlHighlight'.
    C:\Users\phillipp\Desktop\test1\app\build\intermediates\res\debug\values-v21\values.xml:175: error: Error: No resource found that matches the given name: attr 'android:colorControlNormal'.
    C:\Users\phillipp\Desktop\test1\app\build\intermediates\res\debug\values-v21\values.xml:172: error: Error: No resource found that matches the given name: attr 'android:colorPrimary'.
    C:\Users\phillipp\Desktop\test1\app\build\intermediates\res\debug\values-v21\values.xml:173: error: Error: No resource found that matches the given name: attr 'android:colorPrimaryDark'.
    C:\Users\phillipp\Desktop\test1\app\build\intermediates\res\debug\values-v21\values.xml:211: error: Error: No resource found that matches the given name: attr 'android:colorAccent'.
    C:\Users\phillipp\Desktop\test1\app\build\intermediates\res\debug\values-v21\values.xml:213: error: Error: No resource found that matches the given name: attr 'android:colorControlActivated'.
    C:\Users\phillipp\Desktop\test1\app\build\intermediates\res\debug\values-v21\values.xml:214: error: Error: No resource found that matches the given name: attr 'android:colorControlHighlight'.
    C:\Users\phillipp\Desktop\test1\app\build\intermediates\res\debug\values-v21\values.xml:212: error: Error: No resource found that matches the given name: attr 'android:colorControlNormal'.
    C:\Users\phillipp\Desktop\test1\app\build\intermediates\res\debug\values-v21\values.xml:209: error: Error: No resource found that matches the given name: attr 'android:colorPrimary'.
    C:\Users\phillipp\Desktop\test1\app\build\intermediates\res\debug\values-v21\values.xml:210: error: Error: No resource found that matches the given name: attr 'android:colorPrimaryDark'.
Information:BUILD FAILED
Information:Total time: 7.699 secs
Information:101 errors
Information:0 warnings
Information:See complete output in console

Vielen Dank nochmal und ich hoffe du kannst mir da noch ein zwei Tipps geben.
 
Was hastn als Compile- und Target-SDK angegeben? 21?
Lollipop-SDK auch installiert?
 
  • Danke
Reaktionen: coreytaylor211
Hi Guten morgen hab alles installiert und hab 19 angegeben.
 
Dann gib 21 an, sonst wird das nichts.
 
  • Danke
Reaktionen: coreytaylor211
Oder du musst ältere Libs verwenden....

lg.
 
  • Danke
Reaktionen: coreytaylor211
Genau so ist es. Die ältere Version ist wahrscheinlich etwas einfacher zu handhaben. Bei den neueren gibt es meines Wissens dieses "Modul-Prinzip" - sofern ich richtig informiert bin. Hab mit v21 noch nicht viel gemacht.
 
  • Danke
Reaktionen: coreytaylor211
@missspelled: Nein, man muss nicht dem Modulprinzip folgen, man kann auch nachwievor die "volle" Version einbinden, genau mit dem Befehl, den der TO zum Einbinden in Gradle genommen hat :)
 
  • Danke
Reaktionen: coreytaylor211 und missspelled
Ähnlich okay vielen Dank, kann das leider erst morgen ausprobieren werde dann berichten wie es gelaufen ist. :smile:

Der ursprüngliche Beitrag von 09:47 Uhr wurde um 10:34 Uhr ergänzt:

reneph schrieb:
@missspelled: Nein, man muss nicht dem Modulprinzip folgen, man kann auch nachwievor die "volle" Version einbinden, genau mit dem Befehl, den der TO zum Einbinden in Gradle genommen hat :)

Das dachte ich auch aber warum kommt dann der Fehler?
Also meinst du auch Es liegt an der Compiler Version ?
 
Na ich war der, der dir gesagt hat, dass du Compiler- und Target-SDK nicht auf 21 gesetzt hast, was du aber für die aktuelle Play Services brauchst. Einfach nach deinem Fehler Googeln, dann kommt das sofort.

Oder eben, wie auch schon jemand gepostet hat, einfach ältere Versionen einsetzen, welche SDK 21 nicht als Target/Compiler-Version brauchen, ob das sinnig ist oder nicht ist eine andere Sache :D
 
  • Danke
Reaktionen: coreytaylor211
@reneph: Danke für die Info. :)
Ich finde es etwas übertrieben, so groß sind die Libs im Verhältnis nicht, als dass man sie nicht komplett einbinden könnte. Jedenfalls machen drei Bildchen im Endeffekt wahrscheinlich mehr Speicher bzw. Traffic aus, als wenn man zwei Module zu viel bereitstellt. Wobei.. wenn manche App 500.000.000x heruntergeladen wird, lassen sich ein paar TB einsparen. :D
Ich denke fast, dass das eher für absolute Profi-Entwickler gedacht ist, aber selbst die haben bekanntlich hin und wieder Fehler im Code. :p
 
  • Danke
Reaktionen: coreytaylor211
@missspelled: Die Modularisierung ist nicht unbedingt ein Problem der Größe, sondern der Anzahl der Methoden. Das dex-Format, in dem der Code in der APK vorliegt unterstützt nur ~64000 Methoden. Die alten Play Services in einem Paket hatten soviel ich weiß ~32000. Bei größeren Apps kann das dann schon zu Problemen kommen.
 
  • Danke
Reaktionen: coreytaylor211
So habe es auf 21 gestellt und siehe da keine Fehler mehr.
Vielen Dank für eure Hilfe top :thumbup:
 
Hallo ich bin es nochmal, ich muss das Thema nochmal aufgreifen.
Und zwar möchte ich das in meiner app ein Zahlenwert der sich ergibt in die Highscore Liste von Google übertragen wird nur steh ich Grade irgendwie auf dem Schlauch.
Es funktioniert soweit alles außer das er die Zahl dann speichert.

Vielen Dank im voraus

Ps: momentan wird der Zahlenwert als activityforresult behandelt.
 
Hey hast du nicht irgendwie Einschränkungen mit Google play games also mann kann ja nur mit einem google+ Account sich registrieren oder?
Falls du Lust hast kannst du dir mal SWARM CONNECT anschauen ist wirklich spitze
einloggen geht über Facebook Twitter Google und swarm...achievements leaderboards einen market an dem du sogar mitverdienst uvm.
Und ausserdem unkomplizierte Integration in die Projekte 20 Minuten Setup die meiste Arbeit machst du in deren adminpanel wo du dir deine Sachen zusammenstellt


Ich habe nichts mit denen zu tun falls es jetzt so rüberkommt als würde ich Werbung machen :)


Ansonsten schau mal ob die activity das richtige zurückging oder speichere die Zahl in die shared refs und ließ diese bei Gegebenheit aus
 
Zuletzt bearbeitet:
Also zu Google Play bezüglich habe ich keine Einschränkungen mit den Accounts.

Mit welchem Befehl von Google play kann ich den Wert denn auslesen gibt es da schon was fertiges ?

Danke schonmal für den Tipp.
 
Das interessiert mich...Ich bin von Google play games service extra abgewichen weil mich das erstens schon bei flappy bird gestört hat und zweitens nur über Google Accounts ein login möglich ist oder man integriert die Facebook API
dann würde es zwei leaderboards geben und bei fb wäre es nur möglich den score seiner Freunde zu vergleichen

Als Lösung hab ich deswegen eben swarm genommen ein leaderboards 4 Vers. log in Möglichkeiten
 

Ähnliche Themen

numanoid
Antworten
4
Aufrufe
1.535
numanoid
numanoid
CrazyC
Antworten
0
Aufrufe
1.387
CrazyC
CrazyC
K
Antworten
0
Aufrufe
1.168
knuppel
K
Zurück
Oben Unten