質問をすることでしか得られない、回答やアドバイスがある。

15分調べてもわからないことは、質問しよう!

新規登録して質問してみよう
ただいま回答率
85.46%
Twitter

Twitterは、140文字以内の「ツイート」と呼ばれる短文を投稿できるサービスです。Twitter上のほぼ全ての機能に対応するAPIが存在し、その関連サービスが多く公開されています。

API

APIはApplication Programming Interfaceの略です。APIはプログラムにリクエストされるサービスがどのように動作するかを、デベロッパーが定めたものです。

Q&A

0回答

1343閲覧

twitter4j-v2-supportの導入(android studio)

funash

総合スコア0

Twitter

Twitterは、140文字以内の「ツイート」と呼ばれる短文を投稿できるサービスです。Twitter上のほぼ全ての機能に対応するAPIが存在し、その関連サービスが多く公開されています。

API

APIはApplication Programming Interfaceの略です。APIはプログラムにリクエストされるサービスがどのように動作するかを、デベロッパーが定めたものです。

0グッド

0クリップ

投稿2021/11/05 08:26

前提・実現したいこと

android studio(java)にて、twitterアプリを作成しています。
twitter4Jを導入していますが、
twitter api ver2 に対応したいと考えています。

そこで、
twitter4j-v2-support(https://github.com/takke/twitter4j-v2)の導入を行うこととしましたが、
上手く動作しません。
どなたかご教授いただけませんか?
よろしくお願いします。

発生している問題・エラーメッセージ

githubに記載されているREADME.mdに従って、設定を行った(つもり)ですが、
gradleファイルをSync Nowすると
以下のようなメッセージが表示されます。

Failed to resolve: jp.takke.twitter4j-v2:twitter4j-v2-support:0.3.2 <a href="open.dependency.in.project.structure">Show in Project Structure dialog</a> Affected Modules: <a href="openFile:C:/Users/***/AndroidStudioProjects/******/app/build.gradle">app</a>

該当のソースコード

build.garadle(プロジェクト) buildscript { repositories { google() mavenCentral() maven { url 'https://takke.github.io/maven' content { includeGroup "jp.takke.twitter4j-v2" } } } dependencies { classpath "com.android.tools.build:gradle:7.0.2" // NOTE: Do not place your application dependencies here; they belong // in the individual module build.gradle files classpath 'com.google.gms:google-services:4.3.10' } } build.gradle(モジュールのdependencies) dependencies { implementation 'androidx.appcompat:appcompat:1.3.1' implementation 'com.google.android.material:material:1.4.0' implementation 'androidx.constraintlayout:constraintlayout:2.1.0' implementation 'androidx.navigation:navigation-fragment:2.3.5' implementation 'androidx.navigation:navigation-ui:2.3.5' implementation 'com.google.android.gms:play-services-ads:20.4.0' implementation files('libs\twitter4j-core-4.0.7.jar') testImplementation 'junit:junit:4.+' androidTestImplementation 'androidx.test.ext:junit:1.1.3' androidTestImplementation 'androidx.test.espresso:espresso-core:3.4.0' //okhttp3関連で追加 implementation group: 'com.squareup.okhttp3', name: 'okhttp', version: '3.14.1' implementation fileTree(dir: 'libs', include: ['*.jar']) implementation 'com.google.android.gms:play-services-ads:20.0.0' // Import the Firebase BoM implementation platform('com.google.firebase:firebase-bom:28.4.2') // Add the dependency for the Firebase SDK for Google Analytics // When using the BoM, don't specify versions in Firebase dependencies implementation 'com.google.firebase:firebase-analytics' implementation "jp.takke.twitter4j-v2:twitter4j-v2-support:0.3.2" // Add the dependencies for any other desired Firebase products // https://firebase.google.com/docs/android/setup#available-libraries }

気になる質問をクリップする

クリップした質問は、後からいつでもMYページで確認できます。

またクリップした質問に回答があった際、通知やメールを受け取ることができます。

バッドをするには、ログインかつ

こちらの条件を満たす必要があります。

guest

あなたの回答

tips

太字

斜体

打ち消し線

見出し

引用テキストの挿入

コードの挿入

リンクの挿入

リストの挿入

番号リストの挿入

表の挿入

水平線の挿入

プレビュー

まだ回答がついていません

会員登録して回答してみよう

アカウントをお持ちの方は

15分調べてもわからないことは
teratailで質問しよう!

ただいまの回答率
85.46%

質問をまとめることで
思考を整理して素早く解決

テンプレート機能で
簡単に質問をまとめる

質問する

関連した質問