Italian Aiuto

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?
 

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.
 

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 ?
 

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:
B4X:
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, 0dip, 100%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.

.
 

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
 

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
 

saslvovc

Member
Licensed User
Risolto il problema non avevo libreria giusta google-play-services_lib
grazie a tutti per il vostro interesse.
 
Top