Parsing code. 0.07
Compiling code. 0.12
Compiling layouts code. 0.03
Generating R file. 0.21
Compiling debugger engine code. 1.90
Compiling generated Java code. Error
B4A line: 119
Activity.AddView(Adbox, 0dip, 100%y - height, 100%x, height)
javac 1.7.0_60
src\achou\ganhou\vallow\telaprincipal.java:480: 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
line
119
B4X:
Activity.AddView(Adbox, 0dip, 100%y - height, 100%x, height)
my manifest
AddManifestText(
<uses-sdk android:minSdkVersion="4" android:targetSdkVersion="19"/>
<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
AddApplicationText(<activity android:name="ice.zxing.CaptureActivity"
android:screenOrientation="portrait" android:configChanges="orientation|keyboardHidden"
android:theme="@android:style/Theme.NoTitleBar.Fullscreen"
android:windowSoftInputMode="stateAlwaysHidden">
</activity>)
AddApplicationText(
<meta-data
android:name="com.facebook.sdk.ApplicationId"
android:value="@string/app_id"/>
<activity
android:name="com.facebook.LoginActivity"
android:theme="@android:style/Theme.Translucent.NoTitleBar.Fullscreen"
android:label="$LABEL$"/>)
SetApplicationAttribute(android:icon, "@drawable/icon")
SetApplicationAttribute(android:label, "$LABEL$")
my main
B4X:
#Region Project Attributes
#ApplicationLabel: Achou Ganhou
#VersionCode: 1
#VersionName: 1.0
#SupportedOrientations: portrait
#CanInstallToExternalStorage: False
#AdditionalRes: C:\Program Files (x86)\Android\android-sdk\extras\google\google_play_services\libproject\google-play-services_lib\res, com.google.android.gms
#AdditionalRes: ..\AppConfig
#AdditionalRes: C:\b4a-dev\fbsdk\res
#AdditionalJar: C:\b4a-dev\fbsdk\facebooksdk.jar
#End Region
what is this?
Last edited: