Italian Aiuto

Discussion in 'Italian Forum' started by saslvovc, Mar 12, 2015.

  1. saslvovc

    saslvovc Member Licensed User

    Qualcuno sa risolvere questo error.
    Grazie

    Error occurred
    An error has occurred in sub:
    java/anglllegalstateException:
    The meta-data tag in your app’s
    AndroidManiFestxml does not
    have the right value Expected
    6171000 but Found 6587000. You
    must have the Following
    declaration within the
    (application) element: <meta-
    data
    androidzname="comgoogleandroi
    dgms.version"
    android:value=”@integer/
    google_play_services_versiorf’ />
    Continue?
     
  2. Spinter

    Spinter Active Member Licensed User

    magari potresti dare più info!!
     
    saslvovc likes this.
  3. saslvovc

    saslvovc Member Licensed User

    Ho eseguito le stesse procedure riportate sul post Error in AndroidManifest.xml qui riportato ma non riesco a risolvere il problema.
    Risolto solo eliminando Admob da App.
     
  4. Spinter

    Spinter Active Member Licensed User

    scusa ma non riesco a capire il problema,
    sai elencare cosa stai facendo googleplay,googlemaps ettc?
     
  5. iz0ndg

    iz0ndg Member Licensed User

    sembra che tu abbia aggiornato l'sdk di android, dopo aver fatto questo devi aggiornare anche il google-play-service.jar nella cartella delle tue librerie.
     
    holdemadvantage likes this.
  6. coslad

    coslad Well-Known Member Licensed User

    Hai indirizzato correttamente il percorso della libreria google play service nel tuo progetto ?
    Hai inserito correttamente il meta-data nel manifest ?
     
  7. saslvovc

    saslvovc Member Licensed User

    il mio manifest


    'This code will be applied to the manifest file during compilation.
    'You do not need to modify it in most cases.
    'See this link for for more information: http://www.basic4ppc.com/forum/showthread.php?p=78136
    AddManifestText(
    <uses-sdk android:minSdkVersion="4" android:targetSdkVersion="14"/>
    <supports-screens android:largeScreens="true"
    android:normalScreens="true"
    android:smallScreens="true"
    android:anyDensity="true"/>)
    'AdMob
    AddApplicationText(
    <meta-data android:name="com.google.android.gms.version"
    android:value="@Integer/google_play_services_version"/>
    <activity android:name="com.google.android.gms.ads.AdActivity"
    android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|uiMode|screenSize|smallestScreenSize"/>

    )
    'End of AdMob
    SetApplicationAttribute(android:icon, "@drawable/icon")
    SetApplicationAttribute(android:label, "$LABEL$")
    'End of default text.


    nel main:

    #AdditionalRes:D:\adt-bundle-windows-x86_64-20140702\sdk\extras\google\google_play_services\libproject\google-play-services_lib\res, com.google.android.gms



    parte di codice codice:
    Code:
    AdBox.Initialize2("Ad""xx-xxx-xxx-xxxxxxxxxxxxx", AdBox.SIZE_SMART_BANNER)
        
    Dim height As Int
               
        
    If GetDeviceLayoutValues.ApproximateScreenSize < 6 Then
      
                    
    'phones
        If 100%x > 100%y Then height = 32dip Else height = 50dip
       
        
    Else
                     
       
    If 100%x > 100%y Then height = 50dip Else height = 90dip
        
    End If             
                   
                    
    Activity.AddView(AdBox, 0dip100%y - height, 100%x, height)
               
                    AdBox.LoadAd
    questo e tutto ciò che uso.
    fino a 6 giorni fa funzionava tutto.
    dopo prova con emulatore e apparso qual messaggio di errore.

    .
     
  8. holdemadvantage

    holdemadvantage Active Member Licensed User

    metti un 9 al posto del 4 nel manifest
     
  9. saslvovc

    saslvovc Member Licensed User

    ora mi da questo errore:

    Parsing code. 0.02
    Compiling code. 0.11
    Compiling layouts code. 0.02
    Generating R file. 0.83
    Compiling generated Java code. Error
    B4A line: 46
    Activity.AddView(AdBox, 0dip, 100%y - height, 100%x, height)
    javac 1.8.0_25
    src\b4a\example\main.java:314: error: cannot access AdView
    mostCurrent._activity.AddView((android.view.View)(mostCurrent._adbox.getObject()),anywheresoftware.b4a.keywords.Common.DipToCurrent((int) (0)),(int) (anywheresoftware.b4a.keywords.Common.PerYToCurrent((float) (100),mostCurrent.activityBA)-_height),anywheresoftware.b4a.keywords.Common.PerXToCurrent((float) (100),mostCurrent.activityBA),_height);
    ^
    class file for com.google.android.gms.ads.AdView not found
    1 error
     
  10. iz0ndg

    iz0ndg Member Licensed User

  11. IlCasti

    IlCasti Active Member Licensed User

    Non è che non hai copiato il jar dei google services nella cartella external library?
    Poi controlla se hai la stringa che li richiama nel Project Attributes
     
  12. saslvovc

    saslvovc Member Licensed User

    Risolto il problema non avevo libreria giusta google-play-services_lib
    grazie a tutti per il vostro interesse.
     
Loading...
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice