Uploaded image for project: 'Appcelerator - INBOX'
  1. Appcelerator - INBOX
  2. AC-6230

Android: how to integrate aol sdk in appcelerator

    Details

      Description

      i want to create a module using .aar file.

      i added aol sdk version 2.32 & .aar file into android/lib folder
      i edit the file exampleproxy,java with the following code

      ExampleProxy.java

      import android.app.Activity;
      import android.widget.Toast;
      import com.aol.mobile.sdk.player.OneSDK;
      import com.aol.mobile.sdk.player.OneSDKBuilder;
      private class ExampleView extends TiUIView
      {
      public ExampleView(TiViewProxy proxy) {
      super(proxy);

      new OneSDKBuilder(activity.getApplicationContext())
      .create(new OneSDKBuilder.Callback() {
      public void onSuccess(OneSDK oneSDK)

      { //useSDK(oneSDK, playerFragment); Toast.makeText(activity.getApplicationContext(), "Error Creating SDK", Toast.LENGTH_SHORT).show(); }

      public void onFailure(Exception e)

      { Toast.makeText(activity.getApplicationContext(), "Error Creating SDK", Toast.LENGTH_SHORT).show(); }

      });
      }

      @Override
      public void processProperties(KrollDict d)

      { super.processProperties(d); }

      }

      i create a new project and added the module inside the project & called the function of module
      var mod = require('<Module_Name>');
      mod.createExample()

      error :

      [ERROR] : Failed to run dexer:
      [ERROR] :
      [ERROR] : Uncaught translation error: com.android.dx.cf.code.SimException: ERROR in com.aol.mobile.sdk.bl.a:(Ljava/lang/String;Ljava/lang/Object;Lcom/aol/mobile/sdk/bi;Lcom/aol/mobile/sdk/bo;Lcom/aol/mobile/sdk/bn;)V: invalid opcode ba - invokedynamic requires --min-sdk-version >= 26 (currently 13)
      [ERROR] : 1 error; aborting

        Attachments

          Activity

            People

            • Assignee:
              shossain Shak Hossain
              Reporter:
              mbhatt33 mbhatt33
            • Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Git Source Code