creativesdk / android-getting-started-samples Goto Github PK
View Code? Open in Web Editor NEWGetting started guides and sample code for the Adobe Creative SDK for Android
Getting started guides and sample code for the Adobe Creative SDK for Android
I am trying to crop image with a fixed width and height.
Is there any option for that?
I tried with this code, but I don't now what value implement on this:
AdobeImageIntent.ForceCrop forceCrop=new AdobeImageIntent.ForceCrop.Builder() .addCropRatio() .build();
In that addCropRatio() method what are the values I need to submit. In options it's showing 2 string paramaters. But I am not finding any document for it.
java.lang.RuntimeException: Unable to start activity ComponentInfo{com.adobe.imageeditorui/com.adobe.creativesdk.aviary.AdobeImageEditorActivity}: android.view.InflateException: Binary XML file line #15: Binary XML file line #15: You must supply a layout_width attribute.
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2449)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2509)
at android.app.ActivityThread.access$1000(ActivityThread.java:153)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1373)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:5527)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:739)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:629)
Caused by: android.view.InflateException: Binary XML file line #15: Binary XML file line #15: You must supply a layout_width attribute.
at android.view.LayoutInflater.inflate(LayoutInflater.java:543)
at android.view.LayoutInflater.inflate(LayoutInflater.java:427)
at com.adobe.creativesdk.aviary.AdobeImageEditorActivity.initializeDropDown(AdobeImageEditorActivity.java:114)
at com.adobe.creativesdk.aviary.AdobeImageEditorActivity.initializeDropDown(AdobeImageEditorActivity.java:78)
at com.adobe.creativesdk.aviary.AdobeImageEditorActivity.onCreate(AdobeImageEditorActivity.java:30)
at android.app.Activity.performCreate(Activity.java:6303)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1108)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2402)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2509)
at android.app.ActivityThread.access$1000(ActivityThread.java:153)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1373)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:5527)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:739)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:629)
Caused by: java.lang.UnsupportedOperationException: Binary XML file line #15: You must supply a layout_width attribute.
at android.content.res.TypedArray.getLayoutDimension(TypedArray.java:711)
at android.view.ViewGroup$LayoutParams.setBaseAttributes(ViewGroup.java:6890)
at android.view.ViewGroup$MarginLayoutParams.(ViewGroup.java:7072)
at android.widget.FrameLayout$LayoutParams.(FrameLayout.java:446)
at android.widget.FrameLayout.generateLayoutParams(FrameLayout.java:386)
at android.widget.FrameLayout.generateLayoutParams(FrameLayout.java:59)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:841)
at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:802)
at android.view.LayoutInflater.inflate(LayoutInflater.java:519)
at android.view.LayoutInflater.inflate(LayoutInflater.java:427)
at com.adobe.creativesdk.aviary.AdobeImageEditorActivity.initializeDropDown(AdobeImageEditorActivity.java:114)
at com.adobe.creativesdk.aviary.AdobeImageEditorActivity.initializeDropDown(AdobeImageEditorActivity.java:78)
at com.adobe.creativesdk.aviary.AdobeImageEditorActivity.onCreate(AdobeImageEditorActivity.java:30)
at android.app.Activity.performCreate(Activity.java:6303)
at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1108)
at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2402)
at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2509)
at android.app.ActivityThread.access$1000(ActivityThread.java:153)
at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1373)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:154)
at android.app.ActivityThread.main(ActivityThread.java:5527)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:739)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:629)
Hi,
After implemented photo editor tool I have one question
how to remove Creative Cloud Connected icon from list of tools?
Please help me with this concern.
Thank you.
Hi
I'm trying to create a react-native plugin for this library. I'm getting the following error:
Error:Execution failed for task ':app:processDebugManifest'.
> Manifest merger failed : Attribute provider#com.adobe.creativesdk.aviary.internal.cds.CdsProvider@authorities value=(com.rnimagetoolsexample.CdsProvider) from AndroidManifest.xml:33:13-63
is also present at [com.adobe.creativesdk:image:4.8.4] AndroidManifest.xml:116:13-64 value=(${appPackageName}.CdsProvider).
Suggestion: add 'tools:replace="android:authorities"' to <provider> element at AndroidManifest.xml:31:9-34:40 to override.
Any ideas?
I'm using the support library 24.2.1 and receiving the following error:
No resource found that matches the given name (at 'android:textColorHint' with value '@color/hint_foreground_material_light').
The error occurs, because the color is a private color and cannot be used outside the support library.
Very very bad documentation, even your own code samples are not working, I have wasted my whole day
Where can I find the proguard rules that are required for:
compile 'com.adobe.creativesdk.foundation:auth:0.9.1062'
compile 'com.adobe.creativesdk:image:4.6.3'
Many thanks!
Without any rules I get:
Warning:com.adobe.creativesdk.aviary.InstallAdobeCaptureDialogActivity: can't find referenced field 'int com_adobe_image_install_capture_dialog' in program class com.aviary.android.feather.sdk.R$layout
Warning:com.adobe.creativesdk.aviary.InstallAdobeCaptureDialogActivity: can't find referenced field 'int feather_install_capture_dialog_text' in program class com.aviary.android.feather.sdk.R$string
Warning:com.adobe.creativesdk.aviary.fragments.StoreListFragment: can't find referenced field 'int common_google_play_services_network_error_title' in program class com.aviary.android.feather.sdk.R$string
Warning:com.adobe.creativesdk.aviary.internal.AdobeAccountUserStatus: can't find referenced field 'int common_google_play_services_network_error_title' in program class com.aviary.android.feather.sdk.R$string
Warning:com.adobe.creativesdk.aviary.panels.StickersPanel$1: can't find referenced method 'boolean access$002(com.adobe.creativesdk.aviary.panels.StickersPanel,boolean)' in program class com.adobe.creativesdk.aviary.panels.StickersPanel
Warning:com.adobe.creativesdk.aviary.panels.StickersPanel$1: can't find referenced method 'boolean access$000(com.adobe.creativesdk.aviary.panels.StickersPanel)' in program class com.adobe.creativesdk.aviary.panels.StickersPanel
Warning:com.adobe.creativesdk.aviary.widget.PackDetailLayout: can't find referenced field 'int common_google_play_services_network_error_title' in program class com.aviary.android.feather.sdk.R$string
Warning:there were 7 unresolved references to program class members.
When downgrading Play Services from 9.4.0
to 8.4.0
, I only get 4 instead of 7 warnings
Warning:com.adobe.creativesdk.aviary.InstallAdobeCaptureDialogActivity: can't find referenced field 'int com_adobe_image_install_capture_dialog' in program class com.aviary.android.feather.sdk.R$layout
Warning:com.adobe.creativesdk.aviary.InstallAdobeCaptureDialogActivity: can't find referenced field 'int feather_install_capture_dialog_text' in program class com.aviary.android.feather.sdk.R$string
Warning:com.adobe.creativesdk.aviary.panels.StickersPanel$1: can't find referenced method 'boolean access$002(com.adobe.creativesdk.aviary.panels.StickersPanel,boolean)' in program class com.adobe.creativesdk.aviary.panels.StickersPanel
Warning:com.adobe.creativesdk.aviary.panels.StickersPanel$1: can't find referenced method 'boolean access$000(com.adobe.creativesdk.aviary.panels.StickersPanel)' in program class com.adobe.creativesdk.aviary.panels.StickersPanel
Downgrading to compile 'com.adobe.creativesdk:image:4.4.8'
resolved all proguard issues.
Seems like that is the workaround.
Though I get a ClassCastException when running it:
08-12 11:54:03.483 30123 30123 E AndroidRuntime: java.lang.RuntimeException: Unable to start activity ComponentInfo{my.package/com.adobe.creativesdk.aviary.AdobeImageEditorActivity}: java.lang.ClassCastException: my.package.MyApplication cannot be cast to gv
08-12 11:54:03.483 30123 30123 E AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2646)
08-12 11:54:03.483 30123 30123 E AndroidRuntime: at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2707)
08-12 11:54:03.483 30123 30123 E AndroidRuntime: at android.app.ActivityThread.-wrap12(ActivityThread.java)
08-12 11:54:03.483 30123 30123 E AndroidRuntime: at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1460)
08-12 11:54:03.483 30123 30123 E AndroidRuntime: at android.os.Handler.dispatchMessage(Handler.java:102)
08-12 11:54:03.483 30123 30123 E AndroidRuntime: at android.os.Looper.loop(Looper.java:154)
08-12 11:54:03.483 30123 30123 E AndroidRuntime: at android.app.ActivityThread.main(ActivityThread.java:6077)
08-12 11:54:03.483 30123 30123 E AndroidRuntime: at java.lang.reflect.Method.invoke(Native Method)
08-12 11:54:03.483 30123 30123 E AndroidRuntime: at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:865)
08-12 11:54:03.483 30123 30123 E AndroidRuntime: at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:755)
08-12 11:54:03.483 30123 30123 E AndroidRuntime: Caused by: java.lang.ClassCastException: my.package.MyApplication cannot be cast to gv
08-12 11:54:03.483 30123 30123 E AndroidRuntime: at pv.a(SourceFile:23)
08-12 11:54:03.483 30123 30123 E AndroidRuntime: at com.adobe.creativesdk.aviary.internal.tracking.AdobeImageAnalyticsTracker.<init>(SourceFile:25)
08-12 11:54:03.483 30123 30123 E AndroidRuntime: at com.adobe.creativesdk.aviary.internal.tracking.AdobeImageAnalyticsTracker.a(SourceFile:99)
08-12 11:54:03.483 30123 30123 E AndroidRuntime: at com.adobe.creativesdk.aviary.internal.MonitoredActivity.onCreate(SourceFile:141)
08-12 11:54:03.483 30123 30123 E AndroidRuntime: at com.adobe.creativesdk.aviary.AdobeImageEditorActivity.onCreate(SourceFile:504)
08-12 11:54:03.483 30123 30123 E AndroidRuntime: at android.app.Activity.performCreate(Activity.java:6664)
08-12 11:54:03.483 30123 30123 E AndroidRuntime: at android.app.Instrumentation.callActivityOnCreate(Instrumentation.java:1118)
08-12 11:54:03.483 30123 30123 E AndroidRuntime: at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2599)
08-12 11:54:03.483 30123 30123 E AndroidRuntime: ... 9 more
Seems like with the older Version I need to implement IAviaryClientCredentials
. Then I don't get the ClassCastException anymore.
Hello!
In the latest version of Android OS, The App is not allowed to perform usual background work we used to do before. So, in the result, when you start that CdsService, sometimes the App is in the background and the error occurs.
Please, fix the issue.
The message from Fabric.io:
Fatal Exception: java.lang.RuntimeException
Unable to start receiver com.adobe.creativesdk.aviary.internal.cds.CdsReceiver: java.lang.IllegalStateException: Not allowed to start service Intent { act=aviary.intent.action.CDS_DOWNLOAD_START cmp=com.drive2/com.adobe.creativesdk.aviary.internal.cds.CdsService (has extras) }: app is in background uid UidRecord{fb5a8ae u0a121 RCVR idle procs:1 seq(0,0,0)}
It happens somewhere there:
com.adobe.creativesdk.aviary.internal.cds.CdsReceiver.handlePackageReplaced (SourceFile:123)
com.adobe.creativesdk.aviary.internal.cds.CdsReceiver.onReceive (SourceFile:103)
Libraries' versions:
com.adobe.creativesdk.foundation:auth:0.9.1251
com.adobe.creativesdk:image:4.8.4
@ashryanbeats
I'm trying to force using only one tool by default (CROP) , by using quick launch option. But the CROP editor only shown after few moment of editor image screen. Is there any way I can direct go to CROP editor without go to main editor activity first ?
I'm using com.adobe.creativesdk:image:4.8.4 lib and getting following errorswhile generating signed APK .
Error:Uncaught translation error: com.android.dx.cf.code.SimException: com.android.dx.rop.cst.CstInterfaceMethodRef cannot be cast to com.android.dx.rop.cst.CstMethodRef
Possible causes for this unexpected error include:<ul><li>Gradle's dependency cache may be corrupt (this sometimes occurs after a network connection timeout.)
<a href="syncProject">Re-download dependencies and sync project (requires network)</a></li><li>The state of a Gradle build process (daemon) may be corrupt. Stopping all Gradle daemons may solve this problem.
<a href="stopGradleDaemons">Stop Gradle build processes (requires restart)</a></li><li>Your project may be using a third-party plugin which is not compatible with the other plugins in the project or the version of Gradle requested by the project.</li></ul>In the case of corrupt Gradle processes, you can also try closing the IDE and then killing all Java processes.
Error:1 error; aborting
Error:Execution failed for task ':app:transformClassesWithDexForRelease'.
> com.android.build.api.transform.TransformException: com.android.ide.common.process.ProcessException: java.util.concurrent.ExecutionException: com.android.ide.common.process.ProcessException: Return code 1 for dex process
I have also updated build tools and play services to latest version but still error remains same. What can be a possible fix for this?
I am new to adobe creative SDK for android, I have integrated adobe creative SDK with my application successfully. Its running successfully on Android 5.0 and up. But when tried to run on 4.0, 4.1, 4.4, 4.4.2 and 4.4.4 it gives error like
FATAL EXCEPTION: main Process: com.padath.imageprocessingaviary, PID: 13471 java.lang.VerifyError: com/trello/rxlifecycle/components/support/RxAppCompatActivity at java.lang.Class.newInstanceImpl(Native Method) at java.lang.Class.newInstance(Class.java:1208) at android.app.Instrumentation.newActivity(Instrumentation.java:1067) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2296) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2470) at android.app.ActivityThread.access$900(ActivityThread.java:174) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1307) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:146) at android.app.ActivityThread.main(ActivityThread.java:5593) at java.lang.reflect.Method.invokeNative(Native Method) at java.lang.reflect.Method.invoke(Method.java:515) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:1283) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:1099) at dalvik.system.NativeStart.main(Native Method)
i am also using a latest versions of both
nothing is displayed in the frame bottom toolbar.
seems to fail to load items.
and crash app when click sticker bottom toolbar.
i want to set applicationIdSuffix of buildTypes in gradle setting.
java.lang.NullPointerException: Attempt to invoke interface method 'int android.database.Cursor.getCount()' on a null object reference
at com.adobe.creativesdk.aviary.panels.StickersPanelAbstract.onLoadComplete(StickersPanelAbstract.java:190)
at com.adobe.creativesdk.aviary.panels.StickersPanelAbstract.onLoadComplete(StickersPanelAbstract.java:102)
at android.support.v4.content.Loader.deliverResult(Loader.java:126)
at android.support.v4.content.CursorLoader.deliverResult(CursorLoader.java:105)
at android.support.v4.content.CursorLoader.deliverResult(CursorLoader.java:37)
at android.support.v4.content.AsyncTaskLoader.dispatchOnLoadComplete(AsyncTaskLoader.java:249)
at android.support.v4.content.AsyncTaskLoader$LoadTask.onPostExecute(AsyncTaskLoader.java:77)
at android.support.v4.content.ModernAsyncTask.finish(ModernAsyncTask.java:476)
at android.support.v4.content.ModernAsyncTask$InternalHandler.handleMessage(ModernAsyncTask.java:493)
at android.os.Handler.dispatchMessage(Handler.java:102)
at android.os.Looper.loop(Looper.java:148)
at android.app.ActivityThread.main(ActivityThread.java:5417)
at java.lang.reflect.Method.invoke(Native Method)
at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:726)
at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:616)
11-10 10:58:32.302 880-2760/? W/ActivityManager: Force finishing activity com.linecorp.linestickers.debug/com.adobe.creativesdk.aviary.AdobeImageEditorActivity
When using these two together:
'com.adobe.creativesdk:image:4.8.4'
'com.adobe.creativesdk.foundation:assetux:0.9.1251'
the project won't build and will give the following error:
java.lang.RuntimeException: Font asset not found fonts/AdobeClean-SemiLight.otf
at android.graphics.Typeface.createFromAsset(Typeface.java:206)
at com.adobe.creativesdk.foundation.internal.utils.AdobeCSDKTypeFace.getTypeface(AdobeCSDKTypeFace.java:43)
at com.adobe.creativesdk.foundation.internal.utils.CreativeSDKTextView.setTypeface(CreativeSDKTextView.java:87)
at android.widget.TextView.setTypefaceFromAttrs(TextView.java:1533)
at android.widget.TextView.(TextView.java:1430)
at android.widget.TextView.(TextView.java:704)
at android.widget.TextView.(TextView.java:700)
at com.adobe.creativesdk.foundation.internal.utils.CreativeSDKTextView.(CreativeSDKTextView.java:66)
at sun.reflect.GeneratedConstructorAccessor331.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at org.jetbrains.android.uipreview.ViewLoader.createNewInstance(ViewLoader.java:475)
at org.jetbrains.android.uipreview.ViewLoader.loadClass(ViewLoader.java:262)
at org.jetbrains.android.uipreview.ViewLoader.loadView(ViewLoader.java:220)
at com.android.tools.idea.rendering.LayoutlibCallbackImpl.loadView(LayoutlibCallbackImpl.java:186)
at android.view.BridgeInflater.loadCustomView(BridgeInflater.java:334)
at android.view.BridgeInflater.loadCustomView(BridgeInflater.java:345)
at android.view.BridgeInflater.createViewFromTag(BridgeInflater.java:245)
at android.view.LayoutInflater.createViewFromTag(LayoutInflater.java:727)
at android.view.LayoutInflater.rInflate_Original(LayoutInflater.java:858)
at android.view.LayoutInflater_Delegate.rInflate(LayoutInflater_Delegate.java:70)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:834)
at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:821)
at android.view.LayoutInflater_Delegate.parseInclude(LayoutInflater_Delegate.java:197)
at android.view.LayoutInflater.parseInclude(LayoutInflater.java:902)
at android.view.LayoutInflater.rInflate_Original(LayoutInflater.java:854)
at android.view.LayoutInflater_Delegate.rInflate(LayoutInflater_Delegate.java:70)
at android.view.LayoutInflater.rInflate(LayoutInflater.java:834)
at android.view.LayoutInflater.rInflateChildren(LayoutInflater.java:821)
at android.view.LayoutInflater.inflate(LayoutInflater.java:518)
at android.view.LayoutInflater.inflate(LayoutInflater.java:397)
at com.android.layoutlib.bridge.impl.RenderSessionImpl.inflate(RenderSessionImpl.java:324)
at com.android.layoutlib.bridge.Bridge.createSession(Bridge.java:429)
at com.android.ide.common.rendering.LayoutLibrary.createSession(LayoutLibrary.java:368)
at com.android.tools.idea.rendering.RenderTask$2.compute(RenderTask.java:567)
at com.android.tools.idea.rendering.RenderTask$2.compute(RenderTask.java:549)
at com.intellij.openapi.application.impl.ApplicationImpl.runReadAction(ApplicationImpl.java:863)
at com.android.tools.idea.rendering.RenderTask.createRenderSession(RenderTask.java:549)
at com.android.tools.idea.rendering.RenderTask.lambda$inflate$1(RenderTask.java:680)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
Any help?
Thanks!
I have integrated only Image Editor SDK in build.gradle, app size goes from 6MB to 16 MB.
Any option to reduce the size.
Please provide a resolution, I think it's a serious issue.
Hello everybody!
I have integrated stickerfactory
module in my Android app. Now, I want to integrate Adobe Creative SDK
to have image process feature (filters, etc.).
In app build.gradle
in dependencies section we have:
compile project(':stickers')
// other dependencies here
compile 'com.adobe.creativesdk.foundation:auth:0.9.1251'
compile 'com.adobe.creativesdk:image:4.8.4'
compile 'com.localytics.android:library:3.8.0'
When signing apk I got this error:
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:transformClassesWithJarMergingForStageDebug'.
> com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: com/android/vending/billing/IInAppBillingService$Stub$Proxy.class
I have found this link on Adobe support page:
https://creativesdk.zendesk.com/hc/en-us/articles/209685473-Android-Image-Editor-IInAppBillingService-Stub-Proxy-class-duplicated-entry-Exception
but still haven't figure out how to solve this issue. 😢
Can someone give me some hint or solution for this problem?
I integrate the latest version of image edit of creative SDK.
i have 25 errors when i build project.
Can anyone helps me?
Hello,
We have implemented CreativeSDK Version: creativesdk:image:4.8.4 in our android application, its working fine but we got security alert from the play console for Fixing a Zip Path Traversal Vulnerability.
Please help us if anybody found solution.
Thanks in advance.
Caused by: java.lang.NoClassDefFoundError: Failed resolution of: Landroid/support/v7/graphics/Palette;
at com.adobe.creativesdk.aviary.async_tasks.AdobeImageDownloadAsyncTask.doInBackground(AdobeImageDownloadAsyncTask.java:126)
at com.adobe.creativesdk.aviary.async_tasks.AdobeImageDownloadAsyncTask.doInBackground(AdobeImageDownloadAsyncTask.java:23)
at android.os.AsyncTask$2.call(AsyncTask.java:292)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at java.lang.Thread.run(Thread.java:818)
Caused by: java.lang.ClassNotFoundException: Didn't find class "android.support.v7.graphics.Palette" on path: DexPathList[[zip file "/data/app/com.mcttechnology.childfolio-2/base.apk"],nativeLibraryDirectories=[/data/app/com.mcttechnology.childfolio-2/lib/x86, /vendor/lib, /system/lib]]
at dalvik.system.BaseDexClassLoader.findClass(BaseDexClassLoader.java:56)
at java.lang.ClassLoader.loadClass(ClassLoader.java:511)
at java.lang.ClassLoader.loadClass(ClassLoader.java:469)
at com.adobe.creativesdk.aviary.async_tasks.AdobeImageDownloadAsyncTask.doInBackground(AdobeImageDownloadAsyncTask.java:126)
at com.adobe.creativesdk.aviary.async_tasks.AdobeImageDownloadAsyncTask.doInBackground(AdobeImageDownloadAsyncTask.java:23)
at android.os.AsyncTask$2.call(AsyncTask.java:292)
at java.util.concurrent.FutureTask.run(FutureTask.java:237)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1112)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:587)
at java.lang.Thread.run(Thread.java:818)
Suppressed: java.lang.ClassNotFoundException: android.support.v7.graphics.Palette
at java.lang.Class.classForName(Native Method)
at java.lang.BootClassLoader.findClass(ClassLoader.java:781)
at java.lang.BootClassLoader.loadClass(ClassLoader.java:841)
at java.lang.ClassLoader.loadClass(ClassLoader.java:504)
... 8 more
Caused by: java.lang.NoClassDefFoundError: Class not found using the boot class loader; no stack available
Cant Upload file to Creative Cloud. Is there any guide or other way to upload file?
Error:(49, 13) Failed to resolve: com.adobe.creativesdk.foundation:auth:0.9.1251 Show in File
Show in Project Structure dialog
when using withOutput(File)
or withOutput(Uri)
, as long as the file or uri is under the path of getExternalFilesDir()
. There is always an exception like this
E/HiResBackgroundService: handled save error: com.adobe.creativesdk.aviary.internal.headless.AdobeImageExecutionException: File not loaded
E/HiResBackgroundService: dispatchError: 3
W/System.err: com.adobe.creativesdk.aviary.internal.headless.AdobeImageExecutionException: File not loaded
W/System.err: at com.adobe.creativesdk.aviary.internal.services.HiResBackgroundService$InternalHandler.saveImage(HiResBackgroundService.java:217)
W/System.err: at com.adobe.creativesdk.aviary.internal.services.HiResBackgroundService$InternalHandler.handleMessage(HiResBackgroundService.java:196)
W/System.err: at android.os.Handler.dispatchMessage(Handler.java)
W/System.err: at android.os.Looper.loop(Looper.java)
W/System.err: at android.os.HandlerThread.run(HandlerThread.java)
Guess it is a permission issue, but add Intent.FLAG_GRANT_WRITE_URI_PERMISSION
doesn't help. What should I do in the SDK?
Could the authentication mechanism be changed so that the API is more like the iOS implementation?
Making my MainApplication implement IAdobeAuthClientCredentials feels like a really weird way of doing it. The iOS mechanism feels (a method call) is much nicer... or is there another way already?
For example:
AdobeCSDKFoundation.initializeCSDKFoundation(context);
AdobeCSDKFoundation.authorizeCSDKFoundation(clientId, clientSecret, redirectUrl, otherStuff);
In testing I've had it working happily on Android 4.1. But when I deployed an alpha test to the app store it appears to have caused a java.lang.VerifyError and the app immediately crashes. The automated android testing that google does now shows that it happened on all 4.x devices, but was ok on 5.x or higher.
I am getting error while using support library version 26.0.0
AsyncTaskCompat class is deprecated in API level 26.0.0 Please refer this link for more information
java.lang.NoClassDefFoundError: Failed resolution of: Landroid/support/v4/os/AsyncTaskCompat; at com.adobe.creativesdk.aviary.AdobeImageEditorActivityAbstract.loadTools(AdobeImageEditorActivityAbstract.java:760) at com.adobe.creativesdk.aviary.AdobeImageEditorActivityAbstract.onPostCreate(AdobeImageEditorActivityAbstract.java:579) at android.app.Instrumentation.callActivityOnPostCreate(Instrumentation.java:1221) at android.app.ActivityThread.performLaunchActivity(ActivityThread.java:2641) at android.app.ActivityThread.handleLaunchActivity(ActivityThread.java:2724) at android.app.ActivityThread.-wrap12(ActivityThread.java) at android.app.ActivityThread$H.handleMessage(ActivityThread.java:1473) at android.os.Handler.dispatchMessage(Handler.java:102) at android.os.Looper.loop(Looper.java:154) at android.app.ActivityThread.main(ActivityThread.java:6123) at java.lang.reflect.Method.invoke(Native Method) at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:867) at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:757) Caused by: java.lang.ClassNotFoundException: Didn't find class
I saw post and updated your libraries from
compile 'com.adobe.creativesdk.foundation:auth:0.9.1186'
compile 'com.adobe.creativesdk:image:4.6.3'
to
compile 'com.adobe.creativesdk.foundation:auth:0.9.1251'
compile 'com.adobe.creativesdk:image:4.8.4'
After that I try to execute the next code from Activity:
Intent imageEditorIntent = new AdobeImageIntent.Builder(this)
.setData(imageUri)
.build();
startActivityForResult(imageEditorIntent, 1);
and got the next error in LogCat: pastebin link
Besides when I checks the library dependencies I see that instead you still use 23 android support libraries
+--- com.adobe.creativesdk:image:4.8.4
| +--- com.jakewharton.hugo:hugo-annotations:1.2.1
| +--- com.adobe.creativesdk.foundation:auth:0.9.1251 (*)
| +--- com.sothree.slidinguppanel:library:3.3.1
| | +--- com.android.support:recyclerview-v7:23.4.0 -> 25.2.0 (*)
| | +--- com.android.support:support-v4:23.4.0 -> 25.2.0 (*)
| | \--- com.android.support:support-annotations:23.4.0 -> 25.2.0
How to fix this issue?
I've registered and am using the values in my Keys object but when running the app on a physical devices from Android studio I get "Invalid API Key and Secret".
I've used the value I was given for API key in CSDK_CLIENT_ID
- is that correct?
forceCrop(AdobeImageIntent.ForceCrop) ..
cannot resolve symbol..
As soon as we integrate this SDK size increases by 12 MB.
Is there any way to reduce the size of apk.
If there is any option to exclude some of features if we dont want, so that size issue is resolved.
Please help.
compile 'com.adobe.creativesdk:image:4.8.4'
compile 'com.android.support:appcompat-v7:25.3.1'
above lib not sync to project .
Hi Team
We are using in-app purchase and creative sdk both in my application. I am getting error during signed build.
Error Message : Duplicate entry
I have also tried to exclude inapp module from creative sdk but error could not be resolve.
Please provide the solution for this.
Thanks
Gaurav
apply plugin: 'com.android.application'
android {
compileSdkVersion 26
buildToolsVersion "26.0.2"
defaultConfig {
applicationId "com.abc.appid"
minSdkVersion 21
targetSdkVersion 26
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
manifestPlaceholders = [appPackageName: "${applicationId}"]
multiDexEnabled true
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_1_8
targetCompatibility JavaVersion.VERSION_1_8
}
packagingOptions {
exclude 'META-INF/DEPENDENCIES.txt'
exclude 'META-INF/LICENSE.txt'
exclude 'META-INF/NOTICE.txt'
exclude 'META-INF/NOTICE'
exclude 'META-INF/LICENSE'
exclude 'META-INF/DEPENDENCIES'
exclude 'META-INF/notice.txt'
exclude 'META-INF/license.txt'
exclude 'META-INF/dependencies.txt'
}
dataBinding {
enabled = true
}
dexOptions {
jumboMode true
}
}
dependencies {
// implementation 'com.google.firebase:firebase-messaging:11.4.2'
compile fileTree(dir: 'libs', include: ['*.jar'])
androidTestCompile('com.android.support.test.espresso:espresso-core:2.2.2', {
exclude group: 'com.android.support', module: 'support-annotations'
})
compile group: 'com.squareup.retrofit2', name: 'adapter-rxjava', version: '2.2.0'
compile group: 'com.squareup.retrofit2', name: 'converter-gson', version: '2.2.0'
compile group: 'com.squareup.okhttp3', name: 'logging-interceptor', version: '3.7.0'
compile 'io.reactivex:rxandroid:1.2.1'
compile 'com.android.support.constraint:constraint-layout:1.0.2'
compile 'com.android.support:design:26.1.0'
compile 'com.android.support:support-v4:26.1.0'
compile 'com.android.support:recyclerview-v7:26.1.0'
compile 'com.android.support:cardview-v7:26.1.0'
compile 'com.airbnb.android:lottie:2.2.5'
/* Firebase Libraries */
compile 'com.google.firebase:firebase-auth:11.4.2'
compile 'com.google.firebase:firebase-core:11.4.2'
compile 'com.google.firebase:firebase-crash:11.4.2'
compile 'com.google.firebase:firebase-config:11.4.2'
/* Add the CSDK framework*/
compile 'com.adobe.creativesdk.foundation:auth:0.9.1251'
compile 'com.adobe.creativesdk:image:4.8.4'
compile 'com.localytics.android:library:3.8.0'
compile 'com.orhanobut:hawk:2.0.1'
compile('com.sangcomz:FishBun:0.7.7@aar') {
transitive = true
}
testCompile 'junit:junit:4.12'
}
apply plugin: 'com.google.gms.google-services'
When I try to run or build the code it gives me error
Error:Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'.
> java.lang.RuntimeException: com.android.builder.dexing.DexArchiveMergerException: Unable to merge dex
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.