Brakujący plik R.java

0

Witam, mam problem z moim z moim projektem aplikacji na Androida, którą tworzę w Eclipse. Mianowicie z mojego projektu zniknął plik R.java z folderu gen. Problem pojawił się gdy nacisnęłam przycisk fix all by naprawić nibybłędy, które wystąpiły gdy chciałam wyeksportować instalkę .apk. Oto błędy z konsoli:

[2016-06-10 1354 - app2new-popsute] Unable to resolve target 'android-23'
[2016-06-10 1354 - AndroidWifiMonitor] Unable to resolve target 'android-23'
[2016-06-10 1354 - Form1] Unable to resolve target 'android-23'
[2016-06-10 1354 - appcompat_v7] Unable to resolve target 'android-23'
[2016-06-10 1354 - Form1] Found 2 versions of android-support-v4.jar in the dependency list,
[2016-06-10 1354 - Form1] but not all the versions are identical (check is based on SHA-1 only at this time).
[2016-06-10 1354 - Form1] All versions of the libraries must be the same at this time.
[2016-06-10 1354 - Form1] Versions found are:
[2016-06-10 1354 - Form1] Path: C:\Users\Dawid\workspace2\Form1\libs\android-support-v4.jar
[2016-06-10 1354 - Form1] Length: 1422188
[2016-06-10 1354 - Form1] SHA-1: 1dc1f63cee098b27db60b9a2833fd7ca58f89636
[2016-06-10 1354 - Form1] Path: C:\Users\Dawid\workspace2\appcompat_v7\libs\android-support-v4.jar
[2016-06-10 1354 - Form1] Length: 1364299
[2016-06-10 1354 - Form1] SHA-1: b6c138ba72ce38beda559df33d369856854fd6f5
[2016-06-10 1354 - Form1] Jar mismatch! Fix your dependencies

0

[2016-06-10 1354 - app2new-popsute] Unable to resolve target 'android-23'
[2016-06-10 1354 - AndroidWifiMonitor] Unable to resolve target 'android-23'
[2016-06-10 1354 - Form1] Unable to resolve target 'android-23'

Jar mismatch! Fix your dependencies

0

import android.support.v7.app.AppCompatActivity;

W tym momencie nie chce importować tej biblioteki.

0

Znaczy to dokładnie tyle, że w dwóch folderach libs masz pliki jar appcompat-v4, które różnią się wersją (i przez to występuje niezgodność). Rozwiązania są dwa: albo instalujesz android-studio (mało kto korzysta z eclipse), albo kopiujesz jeden plik appcompa-v4 do drugiego folderu i go zastępujesz (tak żeby wersje się zgadzały).

1 użytkowników online, w tym zalogowanych: 0, gości: 1