I was working with fragments in android studio 1.0.1. Just as network process are not good to be done in the main UI, i moved my code to a different class containing fragmen
the compile time error is suggesting that your ForecastFragment
is using the native fragment support app.Fragment
, but in your activity you are using a transaction from the support library. You have to be consistent with the import. Change your ForecastFragment
in order to make it use the Fragment from the support library
I don't know what you're doing but it looks like you have a syntax error.
new com.sunshine.example.sunshine.app.Fragment*()*
You should put parentheses ()
at the end of any creating objects statement.