Thank you for your answer , but I got the solution. I was building for a specific Target so the Android support libraries resource directory had to be mentioned separately .
Thank you all, for your time On Oct 21, 2017 9:24 AM, "Colin Cross" <ccr...@android.com> wrote: > You need to tell the build system that you are building an unbundled app > and not a platform build. You can do that with: > source build/envsetup.sh > tapas AppName > make > > or with: > make TARGET_BUILD_APPS=AppName > > On Wed, Oct 18, 2017 at 11:50 PM, Nikhil S Nair < > nikhundeadhun...@gmail.com> wrote: > >> Hello All, >> >> I have tried to build an apk of a sample project. But the when i create >> an apk using an Android.mk file, the dex files are getting stripped off >> from the apk. >> When i try to install, Invalid apk error is shown. Kindly provide your >> suggestions on how to rectify this isssue. >> >> NOTE: I have already tried >> mm DEX_PREOPT_DISABLE = true >> and >> adding the same in my mk file. >> >> Thank you for your time >> >> -- >> -- >> You received this message because you are subscribed to the "Android >> Building" mailing list. >> To post to this group, send email to android-building@googlegroups.com >> To unsubscribe from this group, send email to >> android-building+unsubscr...@googlegroups.com >> For more options, visit this group at >> http://groups.google.com/group/android-building?hl=en >> >> --- >> You received this message because you are subscribed to the Google Groups >> "Android Building" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to android-building+unsubscr...@googlegroups.com. >> For more options, visit https://groups.google.com/d/optout. >> > > -- > -- > You received this message because you are subscribed to the "Android > Building" mailing list. > To post to this group, send email to android-building@googlegroups.com > To unsubscribe from this group, send email to > android-building+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/android-building?hl=en > > --- > You received this message because you are subscribed to the Google Groups > "Android Building" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to android-building+unsubscr...@googlegroups.com. > For more options, visit https://groups.google.com/d/optout. > -- -- You received this message because you are subscribed to the "Android Building" mailing list. To post to this group, send email to android-building@googlegroups.com To unsubscribe from this group, send email to android-building+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-building?hl=en --- You received this message because you are subscribed to the Google Groups "Android Building" group. To unsubscribe from this group and stop receiving emails from it, send an email to android-building+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.