Android Bootstrap

アプリ ソースコード

概要

 状態:未解決  閲覧数:2,124  投稿日:2014-02-17  更新日:2014-02-24
・開発ページ … donnfelker/android-bootstrap · GitHub


エラー


・Eclipseへプロジェクトインポートすると、エラー発生
インポートされた javax.inject は見つかりません


必要要件


Mavenバージョン3.0.3以降
Android SDK


Android Studioとは?


InteliJ IDEAベースのIDE
・ビルドツールにGradleが使われている


疑問


・「Gradle plugin」があれば、Eclipse で動作可能?
FYI, you can include the "App" part of this into Eclipse if you have the Gradle plugin installed in Eclipse (if you're using the latest version of Android Bootstrap) by doing a File/Import/GradleProject and then doing Build Models and choosing App.  To run it on a device, you have to do Run As/Gradle Build and choose installDebug to run it on any device hooked to your system.
I haven't figured out how to debug it yet though...and builds are fairly slow because it does a Gradle build....even IntelliJ Maven builds are a lot slower than Eclipse launches of a typical Android app, so it's a tradeoff for the better programming IDE of IntelliJ.  Honestly, I think the best thing to do is use the standard Eclipse Android directory layout and do a project export to build the build.gradle for it so you can use it w/ IntelliJ...you don't get the standard Gradle directory structure, but this gives you the best of both worlds


Apache Maven インストール

 閲覧数:464 投稿日:2014-02-17 更新日:2014-02-17
公式サイト
・Maven 3.1.1 (Binary zip) … apache-maven-3.1.1-bin.zip

Windows 7 のPATHへ追記
・「コンピュータ」アイコン右クリック
・「プロパティ」選択
・「システムの詳細設定」メニューから「詳細設定」タブ選択
・「環境変数」ボタンクリック

インストール確認
・正常インストールを確認するため、バージョン表示
・Windowsコマンドプロンプトより実行


・インストール完了

Mavenによるプロジェクトのビルド

 閲覧数:1,252 投稿日:2014-02-17 更新日:2014-02-17

Mavenビルド


Mavenのアーキタイプにより作られたプロジェクトでは、ビルド(パッケージング)することによって成果物(jarファイル等)が作られる

・ファイル生成する際には、cleanも一緒に指定
・targetをクリアしてから実行(targetにゴミが残っている可能性があるから、クリア)


ビルド失敗





環境変数「ANDROID_HOME」を、インストールした Android SDK に設定

 閲覧数:1,815 投稿日:2014-02-17 更新日:2014-02-19

ANDROID_HOME


・In addition you'll need to set the ANDROID_HOME environment variable to the location of your SDK:
export ANDROID_HOME=/home/donnfelker/tools/android-sdk

設定


Mavenによるプロジェクトビルド … 2回目

 閲覧数:787 投稿日:2014-02-18 更新日:2014-02-24

失敗


mvn clean package



原因は?


バージョンが高過ぎる?

EclipseのMavenプラグインであるm2eのインストール

 閲覧数:641 投稿日:2014-02-18 更新日:2014-02-23

m2eプラグイン


インストール
・[ヘルプ]-[新規ソフトウェアの更新]-「追加ボタンクリック」
・「http://download.eclipse.org/releases/kepler/」入力
・プルダウンで選択
・[一般用ツール]-[m2e Eclipse用 Maven 統合]選択


Gradleプラグインとは?


・再利用可能なビルドロジックの断片をパッケージとしてまとめ、異なるプロジェクトやビルドで横断的に使えるようにするプラグイン
・独自のカスタムプラグインの実装手段を提供しているので、独自のビルドロジックを再利用し、他のユーザーと共有することが可能


ロバ耳

Pixate Freestyle for Android



マウスで矢印を一番右までスライドさせると、ゲストコメント投稿できるよー

週間人気ページランキング / 6-19 → 6-25
順位 ページタイトル抜粋 アクセス数
アクセスが、ありませんでした! 0
2025/6/26 1:01 更新