Hello,
I am using the Simple Library Compiler to build a wrapper for Amazon ads. I'm basing everything on the AdMob wrapper source code posted by Erel several years ago.
I need to reference an external jar. I see the @DependsOn attribute to include in the Java file. However when I add this to the Java file and compile in the Simple Library Compiler I receive the following error (the image below shows the Simple Library Compiler and output).
I have also attached my Java file. Below is the portion that generates the error.
Thanks any help.
Barry.
I am using the Simple Library Compiler to build a wrapper for Amazon ads. I'm basing everything on the AdMob wrapper source code posted by Erel several years ago.
I need to reference an external jar. I see the @DependsOn attribute to include in the Java file. However when I add this to the Java file and compile in the Simple Library Compiler I receive the following error (the image below shows the Simple Library Compiler and output).
B4X:
Starting step: Compiling Java code.
javac 1.7.0_45
C:\Users\Barry\AndroidDev\Basic4Android\SimpleLibraryCompiler\AmazonAds\src\canalrun\b4a\amznwrapper\AMZNWrapper.java:29: error: cannot find symbol
@DependsOn(values={"amazon-ads"})
^
symbol: class DependsOn
1 error
Error.
I have also attached my Java file. Below is the portion that generates the error.
B4X:
@Version(1.0f)
@ShortName("AmznAd")
@Events(values={"ReceiveAd", "FailedToReceiveAd (ErrorCode As String)"})
@ActivityObject
@DontInheritEvents
@Permissions(values={"android.permission.INTERNET", "android.permission.ACCESS_NETWORK_STATE"})
@DependsOn(values={"amazon-ads"})
public class AMZNWrapper extends ViewWrapper<AdLayout> {
private AdLayout adView; // The ad view used to load and display the ad.
private static final String LOG_TAG = "AMZNWrapper"; // Tag used to prefix all log messages
Thanks any help.
Barry.