[AC-6230] Android: how to integrate aol sdk in appcelerator
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | n/a |
Status | Resolved |
Resolution | Needs more info |
Resolution Date | 2019-07-24T15:52:30.000+0000 |
Affected Version/s | Appcelerator Studio 4.5.0 |
Fix Version/s | n/a |
Components | Alloy, Appcelerator CLI, Appcelerator Modules, Hyperloop, Titanium SDK & CLI |
Labels | android, aol-sdk, appcelerator, hyperloop, modules, titanium |
Reporter | mbhatt33 |
Assignee | Shak Hossain |
Created | 2019-04-27T05:32:01.000+0000 |
Updated | 2019-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
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.
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.