React Nativeのビルドでcom.atlassian.mobile.video:okhttp-ws-compat:3.7.0-atlassian1が無いって怒られる

React Nativeのビルドでcom.atlassian.mobile.video:okhttp-ws-compat:3.7.0-atlassian1が無いって怒られる

React Nativeのビルドでcom.atlassian.mobile.video:okhttp-ws-compat:3.7.0-atlassian1が無いって怒られる

数日ぶりにgradleでコンパイルを実行すると、以下のようなエラーが起こるようになった。プロジェクトには何も変更を加えていない。

<span id="395f" class="pn po io pj b gz pp pq m pr ps">FAILURE: Build failed with an exception.</span><span id="ff4e" class="pn po io pj b gz pt pq m pr ps">* What went wrong:<br></br>A problem occurred configuring project ':app'.<br></br>> A problem occurred configuring project ':react-native-sqlite-2'.<br></br> > Could not resolve all dependencies for configuration ':react-native-sqlite-2:_debugCompile'.<br></br> > Could not find com.atlassian.mobile.video:okhttp-ws-compat:3.7.0-atlassian1.<br></br> Searched in the following locations:<br></br> file:/Users/nora/.m2/repository/com/atlassian/mobile/video/okhttp-ws-compat/3.7.0-atlassian1/okhttp-ws-compat-3.7.0-atlassian1.pom<br></br> file:/Users/nora/.m2/repository/com/atlassian/mobile/video/okhttp-ws-compat/3.7.0-atlassian1/okhttp-ws-compat-3.7.0-atlassian1.jar<br></br> <a class="ag hb" href="https://jcenter.bintray.com/com/atlassian/mobile/video/okhttp-ws-compat/3.7.0-atlassian1/okhttp-ws-compat-3.7.0-atlassian1.pom" rel="noopener ugc nofollow" target="_blank">https://jcenter.bintray.com/com/atlassian/mobile/video/okhttp-ws-compat/3.7.0-atlassian1/okhttp-ws-compat-3.7.0-atlassian1.pom</a><br></br> <a class="ag hb" href="https://jcenter.bintray.com/com/atlassian/mobile/video/okhttp-ws-compat/3.7.0-atlassian1/okhttp-ws-compat-3.7.0-atlassian1.jar" rel="noopener ugc nofollow" target="_blank">https://jcenter.bintray.com/com/atlassian/mobile/video/okhttp-ws-compat/3.7.0-atlassian1/okhttp-ws-compat-3.7.0-atlassian1.jar</a><br></br> file:/Users/nora/Developments/local/pkpk/inkdrop/inkdrop-mobile/node_modules/react-native/android/com/atla<br></br>ssian/mobile/video/okhttp-ws-compat/3.7.0-atlassian1/okhttp-ws-compat-3.7.0-atlassian1.pom<br></br> file:/Users/nora/Developments/local/pkpk/inkdrop/inkdrop-mobile/node_modules/react-native/android/com/atlassian/mobile/video/okhttp-ws-compat/3.7.0-atlassian1/okhttp-ws-compat-3.7.0-atlassian1.jar<br></br> <a class="ag hb" href="https://repo1.maven.org/maven2/com/atlassian/mobile/video/okhttp-ws-compat/3.7.0-atlassian1/okhttp-ws-compat-3.7.0-atlassian1.pom" rel="noopener ugc nofollow" target="_blank">https://repo1.maven.org/maven2/com/atlassian/mobile/video/okhttp-ws-compat/3.7.0-atlassian1/okhttp-ws-compat-3.7.0-atlassian1.pom</a><br></br> <a class="ag hb" href="https://repo1.maven.org/maven2/com/atlassian/mobile/video/okhttp-ws-compat/3.7.0-atlassian1/okhttp-ws-compat-3.7.0-atlassian1.jar" rel="noopener ugc nofollow" target="_blank">https://repo1.maven.org/maven2/com/atlassian/mobile/video/okhttp-ws-compat/3.7.0-atlassian1/okhttp-ws-compat-3.7.0-atlassian1.jar</a><br></br> file:/Users/nora/Library/Android/sdk/extras/android/m2repository/com/atlassian/mobile/video/okhttp-ws-compat/3.7.0-atlassian1/okhttp-ws-compat-3.7.0-atlassian1.pom<br></br> file:/Users/nora/Library/Android/sdk/extras/android/m2repository/com/atlassian/mobile/video/okhttp-ws-compat/3.7.0-atlassian1/okhttp-ws-compat-3.7.0-atlassian1.jar<br></br> file:/Users/nora/Library/Android/sdk/extras/google/m2repository/com/atlassian/mobile/video/okhttp-ws-compat/3.7.0-atlassian1/okhttp-ws-compat-3.7.0-atlassian1.pom<br></br> file:/Users/nora/Library/Android/sdk/extras/google/m2repository/com/atlassian/mobile/video/okhttp-ws-compat/3.7.0-atlassian1/okhttp-ws-compat-3.7.0-atlassian1.jar<br></br> Required by:<br></br> inkdrop:react-native-sqlite-2:unspecified > com.facebook.react:react-native:0.42.3-atlassian-1</span><span id="efb1" class="pn po io pj b gz pt pq m pr ps">* Try:<br></br>Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.</span>

調べてみると、どうやら二日前から他の人にも発生する問題のようだ:

この問題は、モジュールに以下の依存の記述がある場合に発生するらしい:

<span id="4774" class="pn po io pj b gz pp pq m pr ps">compile 'com.facebook.react:react-native:+'</span>

このissueを読み進めていくと解決方法が提示されていた。 android/build.gradle に以下のような設定を追記すればよい。

<span id="4cfe" class="pn po io pj b gz pp pq m pr ps">allprojects {<br></br> configurations.all {<br></br> resolutionStrategy {<br></br> eachDependency { DependencyResolveDetails details -><br></br> if (details.requested.group == 'com.facebook.react' && details.requested.name == 'react-native') {<br></br> def file = new File("$rootDir/../node_modules/react-native/package.json")<br></br> def version = new groovy.json.JsonSlurper().parseText(file.text).version<br></br> details.useVersion version<br></br> }<br></br> }<br></br> }<br></br> }<br></br>}</span>

この設定によって、全ての依存モジュールが同じreact nativeのバージョンを使うように強制する。

これで自分の環境では解決した。

Read more

Claude Codeをtmuxのポップアップウィンドウで継続的に走らせる方法

Claude Codeをtmuxのポップアップウィンドウで継続的に走らせる方法

💡本記事は英語ブログの日本語訳です。 どうも、TAKUYAです。 AIコーディングでは専らClaude Codeを使っています。最初はtmuxでターミナルの右側にペインを分割して使っていたのですが、幅が狭すぎてメッセージやdiffがまともに表示できず、使いづらかったです。 <Prefix>+zでペインを最大化すればいいのですが、毎回やるのは面倒でした。 そこで、ポップアップウィンドウでClaude Codeを起動するようにしました。キーバインドを押せばセッションが開き、閉じてもバックグラウンドで動き続けるので、すぐに再開できます。 この記事では、それを実現するためのtmuxの設定方法を紹介します。 動画で見る(英語): ポップアップウィンドウはサブプロセスを維持できない tmuxのdisplay-popupコマンドを使うとポップアップウィンドウを表示でき、ちょっとしたツールにすぐアクセスするのに便利です。 僕はlazygitでgitの状態をサッと確認するのに使っています: bind -r g display-popup -d '#{pane_current_path}'

By Takuya Matsuyama
Keychron K2 HEを無刻印化する手順

Keychron K2 HEを無刻印化する手順

どうもTAKUYAです。KeychronさんにK2 HEをお願いしたら音速で送ってくれたので、無刻印化してみました。どうやったのか過程をシェアします。 Unboxing 上はKeychron Q1です。これは3年間ぐらい使ってきました。キーキャップが若干くたびれていますね。でも問題なく今まで使えていました。そろそろ飽きてきたので新しいキーボードを試したいと思い、前から気になっていたK2 HEを試すことにしました(写真下)。 Amazon | 【国内正規品】Keychron K2 HE ラピッドトリガー ワイヤレス カスタムキーボード、ホールエフェクトGateronダブルレール・マグネットスイッチ、2.4GHz・Bluetooth無線対応、QMKプログラム可能、アルミ+ウッドフレーム、USレイアウト、RGBライト、Mac Windows Linux対応 (ブラック) | Keychron | パソコン用キーボード 通販【国内正規品】Keychron K2 HE ラピッドトリガー ワイヤレス カスタムキーボード、ホールエフェクトGateronダブルレール・マグネットスイッチ、

By Takuya Matsuyama
ノート駆動AIコーディング術の提案

ノート駆動AIコーディング術の提案

どうもTAKUYAです。みなさんはAIエージェントを普段のコーディングで活用されていますか。ちょっと面白いワークフローを思いついたのでシェアします。それは、ノート駆動のエージェンティック・コーディング・ワークフローです。最近Claude Codeのプランモードを使っていたら、ターミナル内で生成されたプランを読むのが辛かったんです。それで、じゃあMarkdownノートアプリであるInkdropをプランの保存先バックエンドとして使えば解決するんじゃないかと思って、 試してみました。こちらがそのデモです(英語): こちらがClaude Codeの設定ファイル群です: GitHub - inkdropapp/note-driven-agentic-coding-workflow at devas.lifeComplete Claude Code configuration collection - agents, skills, hooks, commands, rules, MCPs. Battle-tested configs from an Anthropic hackathon w

By Takuya Matsuyama
2025年個人開発活動の振り返り

2025年個人開発活動の振り返り

どうもTAKUYAです。もう1月も半ばに差し掛かっているけど、2025年の自分の活動の振り返りをしたい。去年を一言で言うなら、本厄を満喫した年だった。 厄年とは、人生の節目にあたって、体調不良や災難が起こりやすいと経験的に言われる年齢のこと。数え年で42歳、確かにもう若さに任せた事は出来ないなと痛感した年だった。(ところであなたの国ではこのような年はありますか?) 夏に体調を崩して2~3ヶ月動けなくなった 暖かくなり花粉が飛び出した頃に、持病のアトピーが悪化しだして、まともに生活出来なくなってしまった。酷さで言うと、2019年に脱ステした時と同じぐらい。 脱ステに無事成功したから、この地獄は二度と味わうことはないだろうと高を括っていたが、まさか7年後にまた味わうとは思わなかった。当時の独身時代と違い、妻も子供もいる中で、周りに多大な迷惑をかける事となった。夏の子供との思い出が全く無い。悲しい。 現在はQoLもほとんど元の状態まで復活できた。写真を撮って症状の変化を記録したので、機会があればシェアしたい。食事療法など色々試したが、結局歩くのが一番自分に効いた。それ以来、一日一万歩

By Takuya Matsuyama