Resource ID not found for attribute "Camerazoom and Cameratilt" in Eclipse Juno ADT package

Dear fellow programmers. I've searched the internet for hours for a solution, but I can't seem to find one. I am getting two errors:

  • Error: Resource ID not found for attribute 'cameraZoom' in package 'com.avans.airports'

    • error: resource id not found for attribute 'cameraTilt' in package 'com.avans.airports'

Also combined with these errors. My R.java file is missing in eclipse.

I have added the google play services library. I've tried everything but can't seem to find a solution and I'm stuck for hours.

<fragment xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:ads="http://schemas.android.com/apk/lib/com.google.ads"
xmlns:map="http://schemas.android.com/apk/res-auto"
android:id="@+id/the_map"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:name="com.google.android.gms.maps.MapFragment"
map:cameraTilt="45"
map:cameraZoom="14"
/>

      

And in this piece of code:

private Airport airport;
private TextView txtName;
private TextView txtLatitude;
private TextView txtLongitude;
private TextView txtElavation;
private TextView txtIso;
private TextView txtMunicipality;
private Button btnMap;

@Override
protected void onCreate(Bundle savedInstanceState) {
    super.onCreate(savedInstanceState);
    setContentView(R.layout.activity_info);

    txtName = (TextView) findViewById(R.id.txtName);
    txtLatitude = (TextView) findViewById(R.id.txtLatitude);
    txtLongitude = (TextView) findViewById(R.id.txtLongitude);
    txtElavation = (TextView) findViewById(R.id.txtElavation);
    txtIso = (TextView) findViewById(R.id.txtIso);
    txtMunicipality = (TextView) findViewById(R.id.txtMunicipality);
    btnMap = (Button) findViewById(R.id.btnMap);

      

I am getting error R cannot resolve variable

Please help me

+3


source to share


1 answer


try adding this line to your gradle



compile 'com.google.android.gms:play-services:9.0.2'

      

0


source







All Articles