reset password
Author Message
ketchupacket
Posts: 8
Posted 16:23 Apr 16, 2014 |

For Programming Exercise 2:Activities, when I import, I don't see a gen folder. I am importing by Import -> General -> Existing Projects -> Select archive, and then selecting the two files. Am I importing this wrong?

Last edited by ketchupacket at 16:25 Apr 16, 2014.
msargent
Posts: 519
Posted 16:27 Apr 16, 2014 |

Try Project/Clean, that should generate an R file. 

ketchupacket
Posts: 8
Posted 16:32 Apr 16, 2014 |

O sorry I forgot to mention that I tried to clean it. I cleaned it and the gen folder was still missing.

msargent
Posts: 519
Posted 16:34 Apr 16, 2014 |

Are there any errors in your xml files? Also, check if your build-tools are installed (see http://stackoverflow.com/a/16774202/399741)

Last edited by msargent at 16:37 Apr 16, 2014.
msargent
Posts: 519
Posted 16:41 Apr 16, 2014 |

Also, this is for everyone, you may need to install SDK v. 18 for this project; go to sdk manager and check the box next to Android 4.3 (API 18)  and click the install button (it may ask you to accept license). 

Last edited by msargent at 16:42 Apr 16, 2014.
wsakura
Posts: 64
Posted 20:42 Apr 16, 2014 |

I imported it differently. After you unzip the file (EDIT: you will also need to unzip the files in Skeleton and TestCases folders), try this in eclipse:

For Importing the ActivityLab

File -> Import -> General -> File System -> "Next Button" -> Browse -> "Locate the 'TheActivityClass' folder" -> expand "TheActivityClass" -> expand "SourceFiles" -> expand "Skeletons" -> select the "ActivityLab" folder

Check the box on the left of "ActivityLab" to import everything. Then press "Finish."

For Importing the ActivityLabTest

File -> Import -> General -> File System -> "Next Button" -> Browse -> "Locate the 'TheActivityClass' folder" -> expand "TheActivityClass" -> expand "SourceFiles" -> expand "TestCases" -> select the "ActivityLabTest" folder

Check the box on the left of "ActivityLab" to import everything. Then press "Finish."

 

You'll see errors in the files until you're done coding everything in the assignment.

Hope this helps.

Last edited by wsakura at 20:48 Apr 16, 2014.