2015-01-06 3 views
0

Я объединил SDK для facebook с моим проектом Android. Это стек ошибок, который у меня есть:ошибка при написании приложения для входа в Facebook для андроида

[2015-01-06 18:54:50 - HelloFacebookSample] Unable to resolve target 'android-9' 
[2015-01-06 18:54:50 - FacebookSDK] Unable to resolve target 'android-9' 
[2015-01-06 18:54:50 - NativeAdSample] Unable to resolve target 'android-9' 
[2015-01-06 18:54:50 - PlacePickerSample] Unable to resolve target 'android-9' 
[2015-01-06 18:54:50 - Scrumptious] Unable to resolve target 'android-9' 
[2015-01-06 18:54:50 - RPSSample] Unable to resolve target 'android-9' 
[2015-01-06 18:54:50 - AdUnitsSample] Unable to resolve target 'android-11' 
[2015-01-06 18:54:50 - FriendPickerSample] Unable to resolve target 'android-9' 
[2015-01-06 18:54:50 - SwitchUserSample] Unable to resolve target 'android-9' 
[2015-01-06 18:54:50 - Fblog] Found 3 versions of android-support-v4.jar in the dependency list, 
[2015-01-06 18:54:50 - Fblog] but not all the versions are identical (check is based on SHA-1 only at this time). 
[2015-01-06 18:54:50 - Fblog] All versions of the libraries must be the same at this time. 
[2015-01-06 18:54:50 - Fblog] Versions found are: 
[2015-01-06 18:54:50 - Fblog] Path: C:\Users\AjayKumar\androidworkspace\appcompat_v7\libs\android-support-v4.jar 
[2015-01-06 18:54:50 - Fblog] Length: 995624 
[2015-01-06 18:54:50 - Fblog] SHA-1: 3e4e879d0b3dc11f2feb3f55e77e3b5bd82c4a28 
[2015-01-06 18:54:50 - Fblog] Path: C:\Users\AjayKumar\androidworkspace\Fblog\libs\android-support-v4.jar 
[2015-01-06 18:54:50 - Fblog] Length: 995624 
[2015-01-06 18:54:50 - Fblog] SHA-1: 3e4e879d0b3dc11f2feb3f55e77e3b5bd82c4a28 
[2015-01-06 18:54:50 - Fblog] Path: C:\Users\AjayKumar\Desktop\facebook-android-sdk-3.21.1\facebook-android-sdk-3.21.1\facebook\libs\android-support-v4.jar 
[2015-01-06 18:54:50 - Fblog] Length: 758727 
[2015-01-06 18:54:50 - Fblog] SHA-1: efec67655f6db90757faa37201efcee2a9ec3507 
[2015-01-06 18:54:50 - Fblog] Jar mismatch! Fix your dependencies 
[2015-01-06 18:54:51 - Fblog] Found 3 versions of android-support-v4.jar in the dependency list, 
[2015-01-06 18:54:51 - Fblog] but not all the versions are identical (check is based on SHA-1 only at this time). 
[2015-01-06 18:54:51 - Fblog] All versions of the libraries must be the same at this time. 
[2015-01-06 18:54:51 - Fblog] Versions found are: 
[2015-01-06 18:54:51 - Fblog] Path: C:\Users\AjayKumar\androidworkspace\appcompat_v7\libs\android-support-v4.jar 
[2015-01-06 18:54:51 - Fblog] Length: 995624 
[2015-01-06 18:54:51 - Fblog] SHA-1: 3e4e879d0b3dc11f2feb3f55e77e3b5bd82c4a28 
[2015-01-06 18:54:51 - Fblog] Path: C:\Users\AjayKumar\androidworkspace\Fblog\libs\android-support-v4.jar 
[2015-01-06 18:54:51 - Fblog] Length: 995624 
[2015-01-06 18:54:51 - Fblog] SHA-1: 3e4e879d0b3dc11f2feb3f55e77e3b5bd82c4a28 
[2015-01-06 18:54:51 - Fblog] Path: C:\Users\AjayKumar\Desktop\facebook-android-sdk-3.21.1\facebook-android-sdk-3.21.1\facebook\libs\android-support-v4.jar 
[2015-01-06 18:54:51 - Fblog] Length: 758727 
[2015-01-06 18:54:51 - Fblog] SHA-1: efec67655f6db90757faa37201efcee2a9ec3507 
[2015-01-06 18:54:51 - Fblog] Jar mismatch! Fix your dependencies 
[2015-01-06 18:55:11 - Fblog] Found 3 versions of android-support-v4.jar in the dependency list, 
[2015-01-06 18:55:11 - Fblog] but not all the versions are identical (check is based on SHA-1 only at this time). 
[2015-01-06 18:55:11 - Fblog] All versions of the libraries must be the same at this time. 
[2015-01-06 18:55:11 - Fblog] Versions found are: 
[2015-01-06 18:55:11 - Fblog] Path: C:\Users\AjayKumar\androidworkspace\appcompat_v7\libs\android-support-v4.jar 
[2015-01-06 18:55:11 - Fblog] Length: 995624 
[2015-01-06 18:55:11 - Fblog] SHA-1: 3e4e879d0b3dc11f2feb3f55e77e3b5bd82c4a28 
[2015-01-06 18:55:11 - Fblog] Path: C:\Users\AjayKumar\androidworkspace\Fblog\libs\android-support-v4.jar 
[2015-01-06 18:55:11 - Fblog] Length: 995624 
[2015-01-06 18:55:11 - Fblog] SHA-1: 3e4e879d0b3dc11f2feb3f55e77e3b5bd82c4a28 
[2015-01-06 18:55:11 - Fblog] Path: C:\Users\AjayKumar\Desktop\facebook-android-sdk-3.21.1\facebook-android-sdk-3.21.1\facebook\libs\android-support-v4.jar 
[2015-01-06 18:55:11 - Fblog] Length: 758727 
[2015-01-06 18:55:11 - Fblog] SHA-1: efec67655f6db90757faa37201efcee2a9ec3507 
[2015-01-06 18:55:11 - Fblog] Jar mismatch! Fix your dependencies 
[2015-01-06 18:55:37 - Fblog] Found 3 versions of android-support-v4.jar in the dependency list, 
[2015-01-06 18:55:37 - Fblog] but not all the versions are identical (check is based on SHA-1 only at this time). 
[2015-01-06 18:55:37 - Fblog] All versions of the libraries must be the same at this time. 
[2015-01-06 18:55:37 - Fblog] Versions found are: 
[2015-01-06 18:55:37 - Fblog] Path: C:\Users\AjayKumar\androidworkspace\appcompat_v7\libs\android-support-v4.jar 
[2015-01-06 18:55:37 - Fblog] Length: 995624 
[2015-01-06 18:55:37 - Fblog] SHA-1: 3e4e879d0b3dc11f2feb3f55e77e3b5bd82c4a28 
[2015-01-06 18:55:37 - Fblog] Path: C:\Users\AjayKumar\androidworkspace\Fblog\libs\android-support-v4.jar 
[2015-01-06 18:55:37 - Fblog] Length: 995624 
[2015-01-06 18:55:37 - Fblog] SHA-1: 3e4e879d0b3dc11f2feb3f55e77e3b5bd82c4a28 
[2015-01-06 18:55:37 - Fblog] Path: C:\Users\AjayKumar\Desktop\facebook-android-sdk-3.21.1\facebook-android-sdk-3.21.1\facebook\libs\android-support-v4.jar 
[2015-01-06 18:55:37 - Fblog] Length: 758727 
[2015-01-06 18:55:37 - Fblog] SHA-1: efec67655f6db90757faa37201efcee2a9ec3507 
[2015-01-06 18:55:37 - Fblog] Jar mismatch! Fix your dependencies 

Я как бы начинающий разработчик Android. Я установил инструменты затмения и ADT. Я пытаюсь написать приложение Android для Android. А вот мой Java-код:

package com.cheerz.fblog; 

import android.support.v7.app.ActionBarActivity; 
import android.support.v7.app.ActionBar; 
import android.support.v4.app.Fragment; 
import android.os.Bundle; 
import android.view.LayoutInflater; 
import android.view.Menu; 
import android.view.MenuItem; 
import android.view.View; 
import android.view.ViewGroup; 
import android.os.Build; 

public class MainActivity extends ActionBarActivity { 

    protected void onCreate(Bundle savedInstanceState) { 
     super.onCreate(savedInstanceState); 
     setContentView(R.layout.activity_main); 
     if (savedInstanceState == null) { 
      getSupportFragmentManager().beginTransaction() 
        .add(R.id.container, new PlaceholderFragment()).commit(); 
     } 
    } 

    /* activates the log for the app */ 
    @Override 
    protected void onResume() { 
     super.onResume(); 

     // Logs 'install' and 'app activate' App Events. 
     AppEventsLogger.activateApp(this); 
    } 

    @Override 
    public boolean onCreateOptionsMenu(Menu menu) { 
     // Inflate the menu; this adds items to the action bar if it is present. 
     getMenuInflater().inflate(R.menu.main, menu); 
     return true; 
    } 

    @Override 
    public boolean onOptionsItemSelected(MenuItem item) { 
     // Handle action bar item clicks here. The action bar will 
     // automatically handle clicks on the Home/Up button, so long 
     // as you specify a parent activity in AndroidManifest.xml. 
     int id = item.getItemId(); 
     if (id == R.id.action_settings) { 
      return true; 
     } 
     return super.onOptionsItemSelected(item); 
    } 

    /** 
    * A placeholder fragment containing a simple view. 
    */ 
    public static class PlaceholderFragment extends Fragment { 

     public PlaceholderFragment() { 
     } 

     @Override 
     public View onCreateView(LayoutInflater inflater, ViewGroup container, 
       Bundle savedInstanceState) { 
      View rootView = inflater.inflate(R.layout.fragment_main, container, 
        false); 
      return rootView; 
     } 

     @Override 
     protected void onPause() { 
      super.onPause(); 

      // Logs 'app deactivate' App Event. 
      AppEventsLogger.deactivateApp(this); 
     } 
    } 
} 
+0

напишите свою целевую версию файла манифеста как максимум в своем sdk –

ответ

0

Вы могли бы установить minSdkversion 9 и не установлен пакет API 2.3 в диспетчере SDK.