Error: Program type already present: com.google.api.client.googleapis.auth.clientlogin.package-info












0














I try to add libraries to create YouTube client (search for videos on YouTube and play them). But I have a trouble when I add library: YouTube Data API v3 Client Library for Java. I follow this tutorial.


This is error:



Program type already present: com.google.api.client.googleapis.auth.clientlogin.package-info
Message{kind=ERROR, text=Program type already present: com.google.api.client.googleapis.auth.clientlogin.package-info, sources=[Unknown source file], tool name=Optional.of(D8)}


Here is my build.gradle:



apply plugin: 'com.android.application'

android {
compileSdkVersion 28
defaultConfig {
applicationId "com.and.pd.ytapi"
minSdkVersion 15
targetSdkVersion 28
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}

dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
implementation 'com.github.bumptech.glide:glide:3.7.0'

testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'

implementation 'com.google.apis:google-api-services-youtube:v3-rev206-1.25.0'
implementation files('libs/YouTubeAndroidPlayerApi.jar')
implementation fileTree(dir: 'libs/youtube', include: '*.jar')
implementation fileTree(dir: 'libs/youtube/libs', include: '*.jar')
implementation 'com.squareup.picasso:picasso:2.5.2'
implementation 'com.android.support:recyclerview-v7:28.0.0'
}


Can someone please help me? Thank you!










share|improve this question






















  • You've got different version usages of com.google.api.client.googleapis.auth.clientlogin.package-info somewhere. You'll have to diagnose your dependencies to see which one to exclude the older version from. See similar issues to know how to do this stackoverflow.com/a/53231013/6668797 and stackoverflow.com/a/52077142/6668797
    – TWL
    Nov 12 '18 at 22:47
















0














I try to add libraries to create YouTube client (search for videos on YouTube and play them). But I have a trouble when I add library: YouTube Data API v3 Client Library for Java. I follow this tutorial.


This is error:



Program type already present: com.google.api.client.googleapis.auth.clientlogin.package-info
Message{kind=ERROR, text=Program type already present: com.google.api.client.googleapis.auth.clientlogin.package-info, sources=[Unknown source file], tool name=Optional.of(D8)}


Here is my build.gradle:



apply plugin: 'com.android.application'

android {
compileSdkVersion 28
defaultConfig {
applicationId "com.and.pd.ytapi"
minSdkVersion 15
targetSdkVersion 28
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}

dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
implementation 'com.github.bumptech.glide:glide:3.7.0'

testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'

implementation 'com.google.apis:google-api-services-youtube:v3-rev206-1.25.0'
implementation files('libs/YouTubeAndroidPlayerApi.jar')
implementation fileTree(dir: 'libs/youtube', include: '*.jar')
implementation fileTree(dir: 'libs/youtube/libs', include: '*.jar')
implementation 'com.squareup.picasso:picasso:2.5.2'
implementation 'com.android.support:recyclerview-v7:28.0.0'
}


Can someone please help me? Thank you!










share|improve this question






















  • You've got different version usages of com.google.api.client.googleapis.auth.clientlogin.package-info somewhere. You'll have to diagnose your dependencies to see which one to exclude the older version from. See similar issues to know how to do this stackoverflow.com/a/53231013/6668797 and stackoverflow.com/a/52077142/6668797
    – TWL
    Nov 12 '18 at 22:47














0












0








0







I try to add libraries to create YouTube client (search for videos on YouTube and play them). But I have a trouble when I add library: YouTube Data API v3 Client Library for Java. I follow this tutorial.


This is error:



Program type already present: com.google.api.client.googleapis.auth.clientlogin.package-info
Message{kind=ERROR, text=Program type already present: com.google.api.client.googleapis.auth.clientlogin.package-info, sources=[Unknown source file], tool name=Optional.of(D8)}


Here is my build.gradle:



apply plugin: 'com.android.application'

android {
compileSdkVersion 28
defaultConfig {
applicationId "com.and.pd.ytapi"
minSdkVersion 15
targetSdkVersion 28
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}

dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
implementation 'com.github.bumptech.glide:glide:3.7.0'

testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'

implementation 'com.google.apis:google-api-services-youtube:v3-rev206-1.25.0'
implementation files('libs/YouTubeAndroidPlayerApi.jar')
implementation fileTree(dir: 'libs/youtube', include: '*.jar')
implementation fileTree(dir: 'libs/youtube/libs', include: '*.jar')
implementation 'com.squareup.picasso:picasso:2.5.2'
implementation 'com.android.support:recyclerview-v7:28.0.0'
}


Can someone please help me? Thank you!










share|improve this question













I try to add libraries to create YouTube client (search for videos on YouTube and play them). But I have a trouble when I add library: YouTube Data API v3 Client Library for Java. I follow this tutorial.


This is error:



Program type already present: com.google.api.client.googleapis.auth.clientlogin.package-info
Message{kind=ERROR, text=Program type already present: com.google.api.client.googleapis.auth.clientlogin.package-info, sources=[Unknown source file], tool name=Optional.of(D8)}


Here is my build.gradle:



apply plugin: 'com.android.application'

android {
compileSdkVersion 28
defaultConfig {
applicationId "com.and.pd.ytapi"
minSdkVersion 15
targetSdkVersion 28
versionCode 1
versionName "1.0"
testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
}
buildTypes {
release {
minifyEnabled false
proguardFiles getDefaultProguardFile('proguard-android.txt'), 'proguard-rules.pro'
}
}
}

dependencies {
implementation fileTree(include: ['*.jar'], dir: 'libs')
implementation 'com.android.support:appcompat-v7:28.0.0'
implementation 'com.android.support.constraint:constraint-layout:1.1.3'
implementation 'com.github.bumptech.glide:glide:3.7.0'

testImplementation 'junit:junit:4.12'
androidTestImplementation 'com.android.support.test:runner:1.0.2'
androidTestImplementation 'com.android.support.test.espresso:espresso-core:3.0.2'

implementation 'com.google.apis:google-api-services-youtube:v3-rev206-1.25.0'
implementation files('libs/YouTubeAndroidPlayerApi.jar')
implementation fileTree(dir: 'libs/youtube', include: '*.jar')
implementation fileTree(dir: 'libs/youtube/libs', include: '*.jar')
implementation 'com.squareup.picasso:picasso:2.5.2'
implementation 'com.android.support:recyclerview-v7:28.0.0'
}


Can someone please help me? Thank you!







android youtube youtube-data-api youtube-api-v3






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 12 '18 at 22:13









Ngan NacyNgan Nacy

31




31












  • You've got different version usages of com.google.api.client.googleapis.auth.clientlogin.package-info somewhere. You'll have to diagnose your dependencies to see which one to exclude the older version from. See similar issues to know how to do this stackoverflow.com/a/53231013/6668797 and stackoverflow.com/a/52077142/6668797
    – TWL
    Nov 12 '18 at 22:47


















  • You've got different version usages of com.google.api.client.googleapis.auth.clientlogin.package-info somewhere. You'll have to diagnose your dependencies to see which one to exclude the older version from. See similar issues to know how to do this stackoverflow.com/a/53231013/6668797 and stackoverflow.com/a/52077142/6668797
    – TWL
    Nov 12 '18 at 22:47
















You've got different version usages of com.google.api.client.googleapis.auth.clientlogin.package-info somewhere. You'll have to diagnose your dependencies to see which one to exclude the older version from. See similar issues to know how to do this stackoverflow.com/a/53231013/6668797 and stackoverflow.com/a/52077142/6668797
– TWL
Nov 12 '18 at 22:47




You've got different version usages of com.google.api.client.googleapis.auth.clientlogin.package-info somewhere. You'll have to diagnose your dependencies to see which one to exclude the older version from. See similar issues to know how to do this stackoverflow.com/a/53231013/6668797 and stackoverflow.com/a/52077142/6668797
– TWL
Nov 12 '18 at 22:47












0






active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53270851%2ferror-program-type-already-present-com-google-api-client-googleapis-auth-clien%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























0






active

oldest

votes








0






active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53270851%2ferror-program-type-already-present-com-google-api-client-googleapis-auth-clien%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Florida Star v. B. J. F.

Error while running script in elastic search , gateway timeout

Adding quotations to stringified JSON object values