Error in making custom application part of android Operating System
<p>I am trying to make my application part of android OS, i downloaded the <a href="http://www.cyanogenmod.com/" rel="nofollow">CyanogenMod</a> (CM7) and compiled it successfully, i am following instructions from <a href="http://www.youtube.com/watch?v=1_H4AlQaNa0" rel="nofollow">here</a>: </p>

<p>The name of the application is "HitMe".</p>

<p>Here are the steps which i followed:</p>

<ol>
<li>cd Cyanogen/packages/apps</li>
<li>ln -s /home/usama/Desktop/HitMe</li>
<li>cd HitMe</li>
<li><p>Copy the Android.mk file , this is the Android.mk file
LOCAL_PATH := $(call my-dir)
include $((CLEAR_VARS)</p>

<h1>Build all java files in the java subdirectory (there is # in the start, its a comment)</h1>

<p>LOCAL_SRC_FILES := $(call all -subdir -java-files)</p>

<h1>Name of the APK to build (there is # in the start, its a comment)</h1>

<p>LOCAL_PACKAGE_NAME := HitMe</p>

<p>include $(BUILD_PACKAGE)</p></li>
<li>rm -rf bin gen</li>
<li>cd Cyanogen/Build/target/product</li>
<li>add "HitMe /" in the core.mk file</li>
<li>cd Cyanogen/packages/apps/HitMe</li>
<li><p>mm
And i got this error:</p>

<p>usama@ubuntu:~/Desktop/Cyanogen/packages/apps$ cd HitMe</p>

<p>usama@ubuntu:~/Desktop/Cyanogen/packages/apps/HitMe$ mm</p>

<p>============================================</p>

<p>PLATFORM_VERSION_CODENAME=REL</p>

<p>PLATFORM_VERSION=2.3.7</p>

<p>TARGET_PRODUCT=full</p>

<p>TARGET_BUILD_VARIANT=eng</p>

<p>TARGET_SIMULATOR=</p>

<p>TARGET_BUILD_TYPE=release</p>

<p>TARGET_BUILD_APPS=</p>

<p>TARGET_ARCH=arm</p>

<p>TARGET_ARCH_VARIANT=armv7-a</p>

<p>HOST_ARCH=x86</p>

<p>HOST_OS=linux</p>

<p>HOST_BUILD_TYPE=release</p>

<p>BUILD_ID=GINGERBREAD</p>

<p>============================================</p>

<p>make: Entering directory <code>/home/usama/Desktop/Cyanogen'
  make: *** No rule to make target</code>out/target/common/obj/APPS/framework-      res_intermediates/src/R.stamp', needed by `out/target/common/obj/APPS/LocalPackage_intermediates/src/R.stamp'.  Stop.</p></li>
</ol>

<p>I thought this would only be happening with my application, but i tried this with DSPManager(which came as a service in CM-7) and i got the exact same error, here is the output of terminal</p>

<pre><code>  usama@ubuntu:~/Desktop/Cyanogen/packages/apps/DSPManager$ mm
  ============================================
  PLATFORM_VERSION_CODENAME=REL
  PLATFORM_VERSION=2.3.7
  TARGET_PRODUCT=full
  TARGET_BUILD_VARIANT=eng
  TARGET_SIMULATOR=
  TARGET_BUILD_TYPE=release
  TARGET_BUILD_APPS=
  TARGET_ARCH=arm
  TARGET_ARCH_VARIANT=armv7-a
  HOST_ARCH=x86
  HOST_OS=linux
  HOST_BUILD_TYPE=release
  BUILD_ID=GINGERBREAD
  ============================================
  make: Entering directory `/home/usama/Desktop/Cyanogen'
  make: *** No rule to make target `out/target/common/obj/APPS/framework-      res_intermediates/src/R.stamp', needed by `out/target/common/obj/APPS/DSPManager_intermediates/src/R.stamp'.  Stop.
</code></pre>

<p>make: Leaving directory `/home/usama/Desktop/Cyanogen'
usama@ubuntu:~/Desktop/Cyanogen/packages/apps/DSPManager$ </p>

<p>Any idea, about how this can be resolved ?</p>
