I'm starting with android developments, and decided to try the bundled android support plugin in IntelliJ 11.1.4 on my MacOsX 10.6.8 64 bits.
I downloaded the sdk from http://developer.android.com/sdk/index.html and activated the plugin (which description does not say what version it is).
I created a new android application, letting the plugin create the source. Then I found some problems :
- the source code created has 2 errors in the main activity java file :
public void onCreate(Bundle savedInstanceState)
1) R is not included (so I included with the import helper) : import android.R;
2) main is not defined in R.layout
- when I compile the project (putting eventually this line in comment), the log says :
I/O error: Cannot run program "/Applications/softdev/adt-bundle-mac-x86_64-20130522/sdk/platforms/android-17/tools/aapt": error=2, No such file or directory
It seems that My sdk is not conform to what intellij expects.
I had a look at the tutorial : http://developer.android.com/training/basics/firstapp/index.html but could not find any help because it is for eclipse.
Thanks for any help, and eventually a tutorial on intellij