reset password
Author Message
dyardim
Posts: 13
Posted 09:23 Nov 15, 2015 |

When i try to run emulator for the random card chooser i get a error saying Activity class does not exist: "Error: Activity class {com.example.davidyardimian.mynoviceprojects/com.example.davidyardimian.mynoviceprojects.MainChanger} does not exist." How would i fix this type of error?

msargent
Posts: 519
Posted 09:34 Nov 15, 2015 |

Did you change the package names? Check manifest.xml to see if the activity is in there with the same package name you used. 

dyardim
Posts: 13
Posted 10:19 Nov 15, 2015 |

Yes it is. Also can i have multiple 

android:name.

Or i can only have one because as of now the name is "MainActivity"

msargent
Posts: 519
Posted 10:21 Nov 15, 2015 |

Could you post your manifest.xml portion that has your activity declaration. Also, you should only need one activity.

msargent
Posts: 519
Posted 10:22 Nov 15, 2015 |

Also, try this: http://stackoverflow.com/a/24241687/399741

dyardim
Posts: 13
Posted 10:35 Nov 15, 2015 |

I changed the android:name to MainChanger and that made it work.

Attachments:
dyardim
Posts: 13
Posted 10:36 Nov 15, 2015 |

Also what exactly is going do we put in the compressed folder?

msargent
Posts: 519
Posted 10:37 Nov 15, 2015 |

Put all the files in the project there.

dyardim
Posts: 13
Posted 10:50 Nov 15, 2015 |

I see and when you say all the files do you mean how you uploaded all the files in Pair_o_dice onto github or just the files contained in the app/src/main folder?

msargent
Posts: 519
Posted 10:51 Nov 15, 2015 |

Just put all of them in there: we can get the ones we need from it. 

dyardim
Posts: 13
Posted 10:56 Nov 15, 2015 |

Oh okay thank you.