Reputation: 1
I'm getting error in my ArrayAdapter<>
listView.setAdapter(new ArrayAdapter<>(this,android.R.layout.simple_list_item_1,name1));
Error:(24, 46) error: diamond operator is not supported in -source 1.6 (use -source 7 or higher to enable diamond operator)
Then I updated my java version to
java version "1.7.0_67"
But still I'm getting the same error. OS I'm using ubuntu 14.04.
Upvotes: 0
Views: 3532
Reputation: 6882
Now with Android Studio(I use v1.1), You can change your language level easily by clicking File
->Project Structure
, and in the open window follow the settings:
Upvotes: 5