Unable to Build the project after gradle :2.1.0 - android

I was trying to implement google gcm in my app.For that, I require google play services to be added.All setup has made as required.But while building getting error like this:
Error:Execution failed for task ':app:clean'.
Unable to delete directory: /media/Development/Projects/Source/MyApp/app/build/intermediates/exploded-aar/AARPNow/oplytic_sdk-1.0/unspecified/jars
If I remove that oplytic_sdk-1.0 library and then same error will pointing to other dependencies.
Does anybody know whats wrong with my gradle?

Related

Appodeal app failing to build on Android due to artifactory permissions (react native)

I have raised this as an issue with Appodeal, but could do with some help in the meantime as I really need a fix: (https://github.com/appodeal/react-native-appodeal/issues/101)
I recently updated react-native-appodeal to 3.0.2, and iOS is working perfectly, however when I try to build for android i get the following error:
* What went wrong:
Could not determine the dependencies of task ':app:dexBuilderProdRelease'.
> Could not resolve all task dependencies for configuration ':app:prodReleaseCompileClasspath'.
> Could not resolve com.facebook.soloader:soloader:0.9.0+.
Required by:
project :app
> Failed to list versions for com.facebook.soloader:soloader.
> Unable to load Maven meta-data from https://artifactory.appodeal.com/appodeal/com/facebook/soloader/soloader/maven-metadata.xml.
> Could not GET 'https://artifactory.appodeal.com/appodeal/com/facebook/soloader/soloader/maven-metadata.xml'. Received status code 401 from server: Unauthorized
I have tried a few things, such as patching the lib to remove jCenter() but so far I have had no success, but this artefact is hosted on their own subdomain so I don't think that makes a difference??
If I navigate directly to https://artifactory.appodeal.com/appodeal/com/facebook/soloader/soloader/maven-metadata.xml, I am faced with a sign in request.
Am i right in thinking this is most likely a config error at their end, or is there something simple I am missing that could bypass this?
Thanks in advance!

Failed to resolve: com.google.firebase:firebase-core:17.0.0

In my android app's build file, I have given a wrong version of the library "com.google.firebase:firebase-core:17.0.0" for now the latest version is "com.google.firebase:firebase-core:16.0.4".
Later, I corrected the build file to use the correct version 'com.google.firebase:firebase-core:16.0.4'. Now while building the app, I am still getting the error.
Failed to resolve: com.google.firebase:firebase-core:17.0.0
I even tried to delete the dependency "com.google.firebase:firebase-core****" but still I am getting the error. Please help me to resolve.
Use same dependency for ads as used for the Core in your case (16.0.4).
Or follow this link for Further Instruction.
[https://firebase.google.com/docs/android/setup][1]
Also use implementation instead of api.

Android Studio - Failed to resolve sync ML Kit sample

So im trying to run this sample from ML kit.
I just created the firebase project and added the google-services.json file.
Im getting this errors:
Failed to resolve: com.google.firebase:firebase-ml-model-interpreter:16.2.0
Failed to resolve: com.google.firebase:firebase-ml-vision:17.0.0
Failed to resolve: com.google.firebase:firebase-ml-common:16.1.2
Any idea why?
PS: Im really new to this so if there is any information i can add to give clues about what is happening just ask and i ll edit the question.
There was a mismatch of the version number. The gradle file is reverted. Please try again for the sample app, and it should work now.
Sample app update was published before SDK was released. This should no longer be an issue now.

How to resolve this error

The error :
Error:Execution failed for task ':app:transformDexArchiveWithExternalLibsDexMergerForDebug'.
java.lang.RuntimeException: com.android.builder.dexing.DexArchiveMergerException: Unable to merge dex
You are implementing the whole play-services package. Try to filter out the dependencies you want to use. For example if you need location api then only compile 'com.google.android.gms:play-services-location:11.8.0'. Try commenting out this line 'com.google.android.gms:play-services:11.6.2'.
As your .gradle file suggests, you are explicitly adding the play services in your project and you are also adding firebase DB and appcompat library which is using a different version of the play services. Try to get the version which uses the same play services version.
If you do not know how to do it you can refer to the following command
./gradlew app:dependencies
If you want an in-depth answer please refer to this awesome thread full of the information.
Following is the good article on the conflict of Gradle dependencies.

Dependency app does not run

After I added the android-3.2 dependency, it did not run in my smartphone and gave me this error:
Error:Execution failed for task ':app:transformClassesWithInstantRunForDebug'.
Unexpected constructor structure.
here is the image of adding dependency
Whenever I don't add the dependency, the app runs in my smartphone.
BTW, I don't use any emulator for testing my app, I just run directly in my smartphone.
please help me.

Categories

Resources