A small library that allows you to create phone fields with corresponding country flags, and validate the phone number using libphonenumber from google.
I recently migrated to the latest gradle version on my android studio and was trying to build this library there. I am getting the following error while trying to build my project:
Program type already present: com.google.protobuf.AbstractMessageLite$Builder$LimitedInputStream
I recently migrated to the latest gradle version on my android studio and was trying to build this library there. I am getting the following error while trying to build my project:
Program type already present: com.google.protobuf.AbstractMessageLite$Builder$LimitedInputStream
Here are my gradle imports:
`dependencies { implementation fileTree(include: ['*.jar'], dir: 'libs') implementation project(':audioiolib') implementation project(':cheetah-mobile-3.4.7') // https://mvnrepository.com/artifact/commons-net/commons-net implementation('com.crashlytics.sdk.android:crashlytics:2.7.1@aar') { transitive = true } implementation('com.crashlytics.sdk.android:answers:1.3.12@aar') { transitive = true } implementation ('com.lamudi.phonefield:phone-field:0.1.3@aar') { transitive = true } implementation files('libs/YouTubeAndroidPlayerApi.jar') implementation "com.android.support:appcompat-v7:$rootProject.ext.supportLibraryVersion" implementation "com.google.code.gson:gson:$rootProject.ext.gsonVersion" implementation "com.android.support:design:$rootProject.ext.supportLibraryVersion" implementation "com.android.support:support-v4:$rootProject.ext.supportLibraryVersion" implementation "com.android.support:cardview-v7:$rootProject.ext.supportLibraryVersion" implementation "com.android.support:recyclerview-v7:$rootProject.ext.supportLibraryVersion" implementation "com.android.support:preference-v7:$rootProject.ext.supportLibraryVersion" implementation "com.android.support:multidex:$rootProject.ext.multidexVersion" implementation "com.google.firebase:firebase-crash:16.0.1" implementation "com.google.firebase:firebase-core:16.0.1" implementation "com.google.firebase:firebase-messaging:17.0.0" implementation "com.google.firebase:firebase-ads:15.0.1" implementation "com.google.firebase:firebase-config:16.0.0" implementation "com.google.firebase:firebase-auth:16.0.1" implementation "com.google.firebase:firebase-firestore:17.0.1" implementation "com.google.android.gms:play-services-auth:15.0.1" implementation "com.facebook.android:facebook-android-sdk:$rootProject.ext.facebookSDKVersion" implementation "com.jakewharton:butterknife:$rootProject.ext.butterknifeVersion" implementation "com.jakewharton.timber:timber:$rootProject.ext.timberVersion" implementation "com.amazonaws:aws-android-sdk-core:$rootProject.ext.awsSDKVersion" implementation "com.amazonaws:aws-android-sdk-s3:$rootProject.ext.awsSDKVersion" implementation "com.amazonaws:aws-android-sdk-ddb:$rootProject.ext.awsSDKVersion" implementation "com.squareup.retrofit2:retrofit:$rootProject.ext.retrofitSDKVersion" implementation "com.squareup.retrofit2:converter-gson:$rootProject.ext.retrofitSDKVersion" implementation "com.squareup.picasso:picasso:$rootProject.ext.picassoSDKVersion" implementation "io.branch.sdk.android:library:$rootProject.ext.branchVersion" implementation "com.amazonaws:aws-android-sdk-ddb-mapper:$rootProject.ext.awsSDKVersion" testImplementation "junit:junit:$rootProject.ext.junitVersion" testImplementation "org.hamcrest:hamcrest-library:$rootProject.ext.hamcrestVersion" testImplementation "org.mockito:mockito-core:$rootProject.ext.mockitoVersion" annotationProcessor "com.jakewharton:butterknife-compiler:$rootProject.ext.butterknifeVersion" implementation 'commons-net:commons-net:3.4' implementation 'com.android.support.constraint:constraint-layout:1.1.0' implementation 'com.parse:parse-android:1.15.8' implementation 'com.parse:parsefacebookutils-v4-android:1.10.4@aar' implementation 'com.evernote:android-job:1.2.5' implementation("com.apxor.android:apxor-android-sdk-rta-fcm:1.7.9@aar") { exclude group: "com.google.firebase" } implementation 'me.himanshusoni.chatmessageview:chat-message-view:1.0.7' implementation 'me.zhanghai.android.materialratingbar:library:1.3.1' implementation "android.arch.persistence.room:runtime:1.1.1-rc1" implementation "com.github.vipulasri:timelineview:1.0.6" annotationProcessor "android.arch.persistence.room:compiler:1.1.1-rc1"
}`
with the following code for repository:
repositories { mavenCentral() jcenter() maven() { url "https://oss.sonatype.org/content/repositories/snapshots" } maven { url 'https://maven.fabric.io/public' } // Added for appodeal .. flatDir { dirs 'libs' } }
Not sure what is happening here..