Saturday, 3 October 2015

How to import cyanogenmod12.1 source to intellij idea



Hi everyone,
I have a problem to import cyanogen12.1 to intellij. As official doc. says, i followed steps.

croot
make idegen && development/tools/idegen/idegen.sh
Open Intellij
Click Open an existing Project
Navigate to ~/android/system
Choose android.ipr
Finish
Note: Should you be developing multiple branches of CyanogenMod, consider an alternative naming scheme for the .ipr & ipl files. this should be done before #2 above.

Rename .ipr: mv android.ipr CM12.ipr
Link .ipl: mv android.ipl CM12.ipl && ln -s CM12.ipl android.ipl

With .ipr i import entire project to the intellij idea. BUT the problem is rest files are not found.
For example; under the packages/apps/ there are some default apps like Settings, camera ect. I want to recompile them but like @string/ect_name or other resource components are not found. In that case R class of the application is not initiated.
Can anyone help me?

Thanks.



No comments:

Post a Comment