Blackchart
Blackchart

Reputation: 133

Aviary SDK image editor run error

I try to implement Aviary SDK in my Android app however everytime i try to run Aviary Intent i get following error:

Intent imageEditorIntent = new AdobeImageIntent.Builder(this)
            .setData(imageUri)
            .build();

    startActivityForResult(imageEditorIntent, 12233);
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.xxx/com.adobe.creativesdk.aviary.AdobeImageEditorActivity}: java.lang.ClassCastException: com.xxx.XXXX cannot be cast to com.adobe.creativesdk.aviary.IAviaryClientCredentials

I found these article, and i've changed implemented interface but it dont help me. enter link description here How can i fix it? I follow documentation instruction but without success. Maybe there is some sample project with SDK and image editor ui?

Upvotes: 1

Views: 672

Answers (2)

Sudipto Roy
Sudipto Roy

Reputation: 6795

In my case , I did not add android:name=".PACKAGE_NAME.MainApplication" inside <application> tag in AndroidManifest.xml .

MainApplication.java contains Aviary Client Credentials like below :

  • CREATIVE_SDK_CLIENT_ID
  • CREATIVE_SDK_CLIENT_SECRET
  • CREATIVE_SDK_REDIRECT_URI
  • CREATIVE_SDK_SCOPES

Upvotes: 0

Ash Ryan Arnwine
Ash Ryan Arnwine

Reputation: 1481

As a preliminary answer to your question, there is a sample project on GitHub that you can fork, clone, and run.

Instructions for using it are in the readme.

Points to check

Upvotes: 1

Related Questions