Posts

Showing posts with the label gradle

Sync is OK but unable to run the project

Image
Sync is OK but unable to run the project Although syncing the android project has no error, When I want to run it, the "edit configuration" dialog opens and says please select android sdk. I expected that such settings should be done in the sync process. Isn't that? 1 Answer 1 You can resolve this issue by doing this File -> Sync Project with Gradle Files I did that. Still see thee same window – mahmood Jun 28 at 13:18 By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Error while using Dagger2, Room and Databinding

Error while using Dagger2, Room and Databinding im having issue with this error "error: cannot find symbol class DataBindingComponent" from app/build/generated/source/dataBinding/baseClasses/debug . i have tried all the options people suggested on internet but no help at all. these options included: 1. clean / rebuild project 2. invalidate caches / restart "error: cannot find symbol class DataBindingComponent" app/build/generated/source/dataBinding/baseClasses/debug 1) this is my root build.gradle buildscript { repositories { google() jcenter() mavenCentral() } dependencies { classpath 'com.android.tools.build:gradle:3.1.3' classpath 'com.google.gms:google-services:4.0.1' // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files } } allprojects { reposi...

ZipException: transform duplicate entry com/google/android/gms/internal/zzez.class

ZipException: transform duplicate entry com/google/android/gms/internal/zzez.class When I try to build APK, there is this message : Error:Execution failed for task ':app:transformClassesWithJarMergingForDebug'. com.android.build.api.transform.TransformException: java.util.zip.ZipException: duplicate entry: com/google/android/gms/internal/zzez.class but when I try to debug app this working. I has delete the .gradle directory but without success. This is my build.gradle app file: buildscript { repositories { mavenCentral() maven { url 'https://maven.fabric.io/public' } } dependencies { classpath 'me.tatarka:gradle-retrolambda:3.2.2' classpath 'io.fabric.tools:gradle:1.21.4' } } apply plugin: 'com.android.application' apply plugin: 'me.tatarka.retrolambda' android { compileSdkVersion 24 buildToolsVersion '26.0.2' packagingOptions { exclude 'META-INF/LICENSE...