Titanium JIRA Archive
Appcelerator Community (AC)

[AC-6230] Android: how to integrate aol sdk in appcelerator

GitHub Issuen/a
TypeBug
Priorityn/a
StatusResolved
ResolutionNeeds more info
Resolution Date2019-07-24T15:52:30.000+0000
Affected Version/sAppcelerator Studio 4.5.0
Fix Version/sn/a
ComponentsAlloy, Appcelerator CLI, Appcelerator Modules, Hyperloop, Titanium SDK & CLI
Labelsandroid, aol-sdk, appcelerator, hyperloop, modules, titanium
Reportermbhatt33
AssigneeShak Hossain
Created2019-04-27T05:32:01.000+0000
Updated2019-07-24T15:52:30.000+0000

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(''); 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

Comments

  1. Sharif AbuDarda 2019-06-14

    Hello, Did you followed the guide in here https://wiki.appcelerator.org/display/guides2/Android+Module+Project ? What's the status of your issue? Thanks.
  2. Rakhi Mitro 2019-07-24

    Hello, Just passing as update here. Are you able to get that sorted out?  Please let us know if you need more help with this issue.

JSON Source