1

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?

Ash Ryan Arnwine
  • 1,471
  • 1
  • 11
  • 27
Blackchart
  • 135
  • 1
  • 3
  • 13
  • I've answered your question below with a link to the repo and possibly relevant files. If that doesn't clear up the issue, please add your gradle code and `Application` subclass to your question. – Ash Ryan Arnwine Apr 15 '16 at 19:32

2 Answers2

1

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

Ash Ryan Arnwine
  • 1,471
  • 1
  • 11
  • 27
0

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
roy
  • 6,685
  • 3
  • 26
  • 39