Adding System Application using application source code
Hi everyone I am trying to add a system application through application source code (Complete working android studio project). My application is working in android studio but when I add it in packages/apps/myapplication ,write its make file and register its package name in aosp_product.mk and compile AOSP then i get some errors.
Any help will be highly appreciated.
packages/apps/Myapplication/src/main/res/layout/content_main.xml:2: error: resource string/appbar_scrolling_view_behavior (aka com.myapplication:string/appbar_scrolling_view_behavior) not found. packages/apps/Myapplication/src/main/res/layout/content_main.xml:8: error: attribute defaultNavHost (aka com.myapplication:defaultNavHost) not found. packages/apps/Myapplication/src/main/res/layout/content_main.xml:8: error: attribute navGraph (aka com.myapplication:navGraph) not found. packages/apps/Myapplication/src/main/res/navigation/nav_graph.xml:2: error: attribute startDestination (aka com.myapplication:startDestination) not found. packages/apps/Myapplication/src/main/res/navigation/nav_graph.xml:14: error: attribute destination (aka com.myapplication:destination) not found. packages/apps/Myapplication/src/main/res/navigation/nav_graph.xml:24: error: attribute destination (aka com.myapplication:destination) not found. error: failed linking file resources. 11:57:34 ninja failed with: exit status 1
#### failed to build some targets (4 seconds) ####