0

Eclipseで次のすべてのアプリの「ベースアプリ」を完成させました。AdMobを使用して、お問い合わせください...

このプロジェクトを新しいアプリにインポートして、そこから作業することはできますか?または、すべてをコピーして貼り付け、名前を変更するだけですか?どのように?そのアプリのようなすべてのもので新しいアプリを開始し、そこからそれを実行するようなものですか?

ありがとう

4

2 に答える 2

2

ベースアプリをライブラリプロジェクトに変えることができ(http://www.vogella.com/blog/2011/03/03/android-library-projects/を参照)、他のアプリにはこのライブラリが含まれます。

これに関する1つの落とし穴は、ライブラリのAndroidManifest.xmlが無視されるため、ライブラリマニフェストから実際のマニフェストにアクティビティやサービスなどを手動でコピーする必要がある場合があります。

于 2012-05-20T11:33:33.827 に答える
0

I would put my "base app" project in a code repository (git in my case), and then just clone it, change the output name, libs etc in any build scripts. Check that into a new repository and keep working from there.

If you don't use git/svn/whatever just copy your source files and create a new project in eclipse, it's probably easier and less error prone than copying the project files as well and trying to remember all the places that refer to your old project.

Might be a little off-topic but what I usually do is I have pure source (and some build scripts) in a code repository and then outside that (in my eclipse workspace) I create the eclipse project and link the source files into my project. So if I trigger builds with eclipse I get the build output in my project directory while keeping my source directory clean.

于 2012-05-20T11:39:24.490 に答える