1 Reply Latest reply on Apr 19, 2017 10:37 AM by ryanskihead

    I am build creative sdk image editor in Phonegap . I  getting error on click image editor button Android app going to be stop

    photoe56999331

      Hello

       

      I am build creative sdk image editor in Phonegap but i am getting error on click edit image Android apps going to be stopped.

       

       

      Error is

      "

      java.lang.RuntimeException: Unable to start activity ComponentInfo{com.photo.teccsa/com.adobe.creativesdk.aviary.AdobeImageEditorActivity}: java.lang.ClassCastException: android.app.Application cannot be cast to com.adobe.creativesdk.foundation.auth.IAdobeAuthClientCredentials

        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2423)

        at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2483)

        at android.app.ActivityThread.access$900(ActivityThread.java:153)

        at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1349)

        at android.os.Handler.dispatchMessage(Handler.java:102)

        at android.os.Looper.loop(Looper.java:148)

        at android.app.ActivityThread.main(ActivityThread.java:5441)

        at java.lang.reflect.Method.invoke(Native Method)

        at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:738)

        at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:628)

      Caused by: java.lang.ClassCastException: android.app.Application cannot be cast to com.adobe.creativesdk.foundation.auth.IAdobeAuthClientCredentials

        at com.adobe.creativesdk.aviary.internal.utils.CredentialsUtils.getApiKey(CredentialsUtils.j ava:24)

        at com.adobe.creativesdk.aviary.internal.tracking.AdobeImageAnalyticsTracker.<init>(AdobeIma geAnalyticsTracker.java:28)

        at com.adobe.creativesdk.aviary.internal.tracking.AdobeImageAnalyticsTracker.getInstance(Ado beImageAnalyticsTracker.java:116)

        at com.adobe.creativesdk.aviary.ToolBarActivity.getTracker(ToolBarActivity.java:76)

        at com.adobe.creativesdk.aviary.AdobeImageEditorActivityAbstract.handleIntent(AdobeImageEdit orActivityAbstract.java:919)

        at com.adobe.creativesdk.aviary.AdobeImageEditorActivityAbstract.onHandleIntentInternal(Adob eImageEditorActivityAbstract.java:617)

        at com.adobe.creativesdk.aviary.AdobeImageEditorActivityAbstract.onHandleIntent(AdobeImageEd itorActivityAbstract.java:611)

        at com.adobe.creativesdk.aviary.AdobeImageEditorActivityAbstract.onPostCreate(AdobeImageEdit orActivityAbstract.java:582)

        at android.app.Instrumentation.callActivityOnPostCreate(Instrumentation.java:1189)

        at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2405)

       

       

      "

       

      This is My config.xml file

       

       

      <?xml version="1.0" encoding="UTF-8"?>

      <widget xmlns     = "http://www.w3.org/ns/widgets"

              xmlns:gap = "http://phonegap.com/ns/1.0"

              xmlns:android = "http://schemas.android.com/apk/res/android"

              id        = "com.photo.teccsa"

              version   = "2.7">

          <name>Photo</name>

          <description>

            Photo

          </description>

          <author href="http://photo.com" email="licensing@teccsa.co.in">

              Photo

          </author>

          <preference name="phonegap-version" value="cli-6.5.0" />

        

         

          <preference name="android-minSdkVersion" value="16" />

       

          <gap:plugin name="cordova-plugin-camera" source="npm" />

         

          <gap:plugin name="cordova-plugin-whitelist" source="npm" />

       

          <plugin name="phonegap-plugin-csdk-client-auth" spec="~1.0.0">

          <variable name="CSDK_CLIENT_ID_IOS" value="<id>" />

              <variable name="CSDK_CLIENT_SECRET_IOS" value="<screr>" />

              <variable name="CSDK_CLIENT_ID_ANDROID" value="<id>" />

              <variable name="CSDK_CLIENT_SECRET_ANDROID" value="<screr>" />

          </plugin>

          <plugin name="phonegap-plugin-csdk-image-editor" spec="~1.0.0" />

       

          <gap:config-file platform="android" parent="/manifest">

            <application android:debuggable="false" />

            <supports-screens android:smallScreens="false" />

          </gap:config-file>

       

        <platform name="android">

              <icon density="ldpi" src="www/res/icon/android/drawable-ldpi-icon.png" />

              <icon density="mdpi" src="www/res/icon/android/drawable-mdpi-icon.png" />

              <icon density="hdpi" src="www/res/icon/android/drawable-hdpi-icon.png" />

              <icon density="xhdpi" src="www/res/icon/android/drawable-xhdpi-icon.png" />

              <icon density="xxhdpi" src="www/res/icon/android/drawable-xxhdpi-icon.png" />

              <icon density="xxxhdpi" src="www/res/icon/android/drawable-xxxhdpi-icon.png" />

              <splash density="land-ldpi" src="www/res/screen/android/drawable-land-ldpi-screen.png" />

              <splash density="land-mdpi" src="www/res/screen/android/drawable-land-mdpi-screen.png" />

              <splash density="land-hdpi" src="www/res/screen/android/drawable-land-hdpi-screen.png" />

              <splash density="land-xhdpi" src="www/res/screen/android/drawable-land-xhdpi-screen.png" />

              <splash density="land-xxhdpi" src="www/res/screen/android/drawable-land-xxhdpi-screen.png" />

              <splash density="land-xxxhdpi" src="www/res/screen/android/drawable-land-xxxhdpi-screen.png" />

              <splash density="port-ldpi" src="www/res/screen/android/drawable-port-ldpi-screen.png" />

              <splash density="port-mdpi" src="www/res/screen/android/drawable-port-mdpi-screen.png" />

              <splash density="port-hdpi" src="www/res/screen/android/drawable-port-hdpi-screen.png" />

              <splash density="port-xhdpi" src="www/res/screen/android/drawable-port-xhdpi-screen.png" />

              <splash density="port-xxhdpi" src="www/res/screen/android/drawable-port-xxhdpi-screen.png" />

              <splash density="port-xxxhdpi" src="www/res/screen/android/drawable-port-xxxhdpi-screen.png" />

              <allow-intent href="market:*" />

          </platform>

          <platform name="ios">

              <icon height="57" platform="ios" src="www/res/icon/ios/icon.png" width="57" />

              <icon height="114" platform="ios" src="www/res/icon/ios/icon@2x.png" width="114" />

              <icon height="40" platform="ios" src="www/res/icon/ios/icon-40.png" width="40" />

              <icon height="80" platform="ios" src="www/res/icon/ios/icon-40@2x.png" width="80" />

              <icon height="50" platform="ios" src="www/res/icon/ios/icon-50.png" width="50" />

              <icon height="100" platform="ios" src="www/res/icon/ios/icon-50@2x.png" width="100" />

              <icon height="60" platform="ios" src="www/res/icon/ios/icon-60.png" width="60" />

              <icon height="120" platform="ios" src="www/res/icon/ios/icon-60@2x.png" width="120" />

              <icon height="180" platform="ios" src="www/res/icon/ios/icon-60@3x.png" width="180" />

              <icon height="72" platform="ios" src="www/res/icon/ios/icon-72.png" width="72" />

              <icon height="144" platform="ios" src="www/res/icon/ios/icon-72@2x.png" width="144" />

              <icon height="76" platform="ios" src="www/res/icon/ios/icon-76.png" width="76" />

              <icon height="152" platform="ios" src="www/res/icon/ios/icon-76@2x.png" width="152" />

              <icon height="29" platform="ios" src="www/res/icon/ios/icon-small.png" width="29" />

              <icon height="58" platform="ios" src="www/res/icon/ios/icon-small@2x.png" width="58" />

              <icon height="87" platform="ios" src="www/res/icon/ios/icon-small@3x.png" width="87" />

              <splash height="1136" platform="ios" src="www/res/screen/ios/Default-568h@2x~iphone.png" width="640" />

              <splash height="1334" platform="ios" src="www/res/screen/ios/Default-667h.png" width="750" />

              <splash height="2208" platform="ios" src="www/res/screen/ios/Default-736h.png" width="1242" />

              <splash height="1242" platform="ios" src="www/res/screen/ios/Default-Landscape-736h.png" width="2208" />

              <splash height="1536" platform="ios" src="www/res/screen/ios/Default-Landscape@2x~ipad.png" width="2048" />

              <splash height="768" platform="ios" src="www/res/screen/ios/Default-Landscape~ipad.png" width="1024" />

              <splash height="2048" platform="ios" src="www/res/screen/ios/Default-Portrait@2x~ipad.png" width="1536" />

              <splash height="1024" platform="ios" src="www/res/screen/ios/Default-Portrait~ipad.png" width="768" />

              <splash height="960" platform="ios" src="www/res/screen/ios/Default@2x~iphone.png" width="640" />

              <splash height="480" platform="ios" src="www/res/screen/ios/Default~iphone.png" width="320" />

              <allow-intent href="itms:*" />

              <allow-intent href="itms-apps:*" />

          </platform>

          <gap:platform name="ios" />

          <gap:platform name="android" />

          <gap:platform name="winphone" />

          <access origin="*" />

          <allow-intent href="http://*/*" />

          <allow-intent href="https://*/*" />

          <allow-intent href="tel:*" />

          <allow-intent href="sms:*" />

          <allow-intent href="mailto:*" />

          <allow-intent href="geo:*" />

          <platform name="android">

            <allow-intent href="market:*" />

          </platform>

       

      </widget>

       

       

      Can any one solve this problem

       

      Thanks in Advance