Autore Topic: Preparing to use the Downloader Library  (Letto 1173 volte)

Offline metal90

  • Nuovo arrivato
  • *
  • Post: 15
  • Respect: 0
    • Mostra profilo
Preparing to use the Downloader Library
« il: 21 Marzo 2014, 19:53:10 CET »
0
Allora sto cercando di caricare sul google play una prima versione alpha di un gioco. Dato che la sua dimensione è di 100 mega ed il ilimite è di 50 mi trovo costretto a usare i file di espansione. Sto seguendo la guida ufficile di Android Developer al link APK Expansion Files | Android Developers,

Sono arrivato alla sezione "Preparing to use the Downloader Library". Chiede di selezionare "Create project from existing source" per creare le librerie Google Play License Library e Google Play Downloader Library. Il problema è che in Eclipse non trovo "Create project from existing source". Non trovandolo creo le due librerie selezionando File->New->Java Project e deselezionando la checkbox "Use default location", caricando le librerie con "Browse", rinominando i progetti come richiesto e premendo Finish. Ma le due librerie che si generano sono entrambe sottolineate in rosso per indicare errore. Non capisco se il problema è che non trovo Create project from existing source oppure perchè devo fare qualcos'altro per permettere il giusto collegamento tra le librerie.

Aggiungo che nella cartella  <sdk>/extras/google/  non trovo market_licensing e market_apk_expansion/downloader_library ma bensì play_licensing e play_apk_expansion/downloader_library...ma credo sia lo stesso no?

La seguente lista comprende tutti gli errori che mi da appena creo le due cartelle come sopra indicato:

Description   Resource   Path   Location   Type
android cannot be resolved to a variable   DownloadNotification.java   /Google Play Downloader Library/src/com/google/android/vending/expansion/downloader/impl   line 164   Java Problem
Bundle cannot be resolved to a type   DownloaderServiceMarshaller.java   /Google Play Downloader Library/src/com/google/android/vending/expansion/downloader   line 103   Java Problem
Bundle cannot be resolved to a type   DownloaderServiceMarshaller.java   /Google Play Downloader Library/src/com/google/android/vending/expansion/downloader   line 103   Java Problem
Bundle cannot be resolved to a type   DownloaderServiceMarshaller.java   /Google Play Downloader Library/src/com/google/android/vending/expansion/downloader   line 93   Java Problem
Bundle cannot be resolved to a type   DownloaderServiceMarshaller.java   /Google Play Downloader Library/src/com/google/android/vending/expansion/downloader   line 98   Java Problem
Bundle cannot be resolved to a type   DownloaderServiceMarshaller.java   /Google Play Downloader Library/src/com/google/android/vending/expansion/downloader   line 86   Java Problem
Bundle cannot be resolved to a type   DownloaderServiceMarshaller.java   /Google Play Downloader Library/src/com/google/android/vending/expansion/downloader   line 86   Java Problem
ActivityInstrumentationTestCase2 cannot be resolved to a type   APKExpansionPolicyTest.java   /Google Play License Library/test/src/com/android/vending/licensing   line 32   Java Problem
Bundle cannot be resolved to a type   DownloaderServiceMarshaller.java   /Google Play Downloader Library/src/com/google/android/vending/expansion/downloader   line 76   Java Problem
Bundle cannot be resolved to a type   DownloaderServiceMarshaller.java   /Google Play Downloader Library/src/com/google/android/vending/expansion/downloader   line 81   Java Problem
Button cannot be resolved to a type   MainActivity.java   /Google Play License Library/sample/src/com/example/android/market/licensing   line 68   Java Problem
Activity cannot be resolved to a type   MainActivity.java   /Google Play License Library/sample/src/com/example/android/market/licensing   line 58   Java Problem
android cannot be resolved to a variable   DownloadNotification.java   /Google Play Downloader Library/src/com/google/android/vending/expansion/downloader/impl   line 158   Java Problem
Bundle cannot be resolved to a type   MainActivity.java   /Google Play License Library/sample/src/com/example/android/market/licensing   line 76   Java Problem
android cannot be resolved to a variable   CustomNotificationFactory.java   /Google Play Downloader Library/src/com/google/android/vending/expansion/downloader/impl   line 25   Java Problem
android cannot be resolved to a variable   DownloadNotification.java   /Google Play Downloader Library/src/com/google/android/vending/expansion/downloader/impl   line 112   Java Problem
android cannot be resolved to a variable   DownloadNotification.java   /Google Play Downloader Library/src/com/google/android/vending/expansion/downloader/impl   line 122   Java Problem
android cannot be resolved to a variable   DownloadNotification.java   /Google Play Downloader Library/src/com/google/android/vending/expansion/downloader/impl   line 98   Java Problem
android cannot be resolved to a variable   DownloadNotification.java   /Google Play Downloader Library/src/com/google/android/vending/expansion/downloader/impl   line 105   Java Problem
android cannot be resolved to a variable   DownloadNotification.java   /Google Play Downloader Library/src/com/google/android/vending/expansion/downloader/impl   line 128   Java Problem
AlertDialog cannot be resolved to a type   MainActivity.java   /Google Play License Library/sample/src/com/example/android/market/licensing   line 106   Java Problem
android cannot be resolved to a type   ILicensingService.java   /Google Play License Library/library/src/com/google/android/vending/licensing   line 12   Java Problem
android cannot be resolved to a type   ILicensingService.java   /Google Play License Library/library/src/com/google/android/vending/licensing   line 15   Java Problem
android cannot be resolved to a variable   DownloadNotification.java   /Google Play Downloader Library/src/com/google/android/vending/expansion/downloader/impl   line 92   Java Problem
android cannot be resolved to a type   ILicensingService.java   /Google Play License Library/library/src/com/google/android/vending/licensing   line 73   Java Problem
android cannot be resolved to a type   ILicensingService.java   /Google Play License Library/library/src/com/google/android/vending/licensing   line 81   Java Problem
Bundle cannot be resolved to a type   DownloaderServiceMarshaller.java   /Google Play Downloader Library/src/com/google/android/vending/expansion/downloader   line 60   Java Problem
Button cannot be resolved to a type   MainActivity.java   /Google Play License Library/sample/src/com/example/android/market/licensing   line 82   Java Problem
Button cannot be resolved to a type   MainActivity.java   /Google Play License Library/sample/src/com/example/android/market/licensing   line 82   Java Problem
Button cannot be resolved to a type   MainActivity.java   /Google Play License Library/sample/src/com/example/android/market/licensing   line 83   Java Problem
android cannot be resolved to a type   ILicensingService.java   /Google Play License Library/library/src/com/google/android/vending/licensing   line 69   Java Problem
android cannot be resolved to a type   ILicensingService.java   /Google Play License Library/library/src/com/google/android/vending/licensing   line 68   Java Problem
android cannot be resolved to a type   ILicensingService.java   /Google Play License Library/library/src/com/google/android/vending/licensing   line 42   Java Problem
android cannot be resolved to a type   ILicensingService.java   /Google Play License Library/library/src/com/google/android/vending/licensing   line 38   Java Problem
android cannot be resolved to a type   ILicensingService.java   /Google Play License Library/library/src/com/google/android/vending/licensing   line 42   Java Problem
android cannot be resolved to a type   ILicensingService.java   /Google Play License Library/library/src/com/google/android/vending/licensing   line 42   Java Problem
android cannot be resolved to a type   ILicensingService.java   /Google Play License Library/library/src/com/google/android/vending/licensing   line 27   Java Problem
android cannot be resolved to a type   ILicensingService.java   /Google Play License Library/library/src/com/google/android/vending/licensing   line 32   Java Problem
android cannot be resolved to a type   ILicensingService.java   /Google Play License Library/library/src/com/google/android/vending/licensing   line 32   Java Problem
Bundle cannot be resolved to a type   DownloaderClientMarshaller.java   /Google Play Downloader Library/src/com/google/android/vending/expansion/downloader   line 126   Java Problem
BaseColumns cannot be resolved to a variable   DownloadsDB.java   /Google Play Downloader Library/src/com/google/android/vending/expansion/downloader/impl   line 52   Java Problem
Activity cannot be resolved to a type   ObfuscatedPreferencesTest.java   /Google Play License Library/test/src/com/android/vending/licensing   line 53   Java Problem
BaseColumns cannot be resolved to a variable   DownloadsDB.java   /Google Play Downloader Library/src/com/google/android/vending/expansion/downloader/impl   line 76   Java Problem
Activity cannot be resolved to a type   ObfuscatedPreferencesTest.java   /Google Play License Library/test/src/com/android/vending/licensing   line 57   Java Problem
Activity cannot be resolved to a type   ObfuscatedPreferencesTest.java   /Google Play License Library/test/src/com/android/vending/licensing   line 55   Java Problem
Bundle cannot be resolved to a type   DownloaderClientMarshaller.java   /Google Play Downloader Library/src/com/google/android/vending/expansion/downloader   line 85   Java Problem
Bundle cannot be resolved to a type   DownloaderClientMarshaller.java   /Google Play Downloader Library/src/com/google/android/vending/expansion/downloader   line 90   Java Problem
Bundle cannot be resolved to a type   DownloaderClientMarshaller.java   /Google Play Downloader Library/src/com/google/android/vending/expansion/downloader   line 78   Java Problem
Bundle cannot be resolved to a type   DownloaderClientMarshaller.java   /Google Play Downloader Library/src/com/google/android/vending/expansion/downloader   line 85   Java Problem
Bundle cannot be resolved to a type   DownloaderClientMarshaller.java   /Google Play Downloader Library/src/com/google/android/vending/expansion/downloader   line 78   Java Problem
android cannot be resolved to a variable   V14CustomNotification.java   /Google Play Downloader Library/src/com/google/android/vending/expansion/downloader/impl   line 75   Java Problem
android cannot be resolved to a type   ILicenseResultListener.java   /Google Play License Library/library/src/com/google/android/vending/licensing   line 42   Java Problem
android cannot be resolved to a type   ILicenseResultListener.java   /Google Play License Library/library/src/com/google/android/vending/licensing   line 42   Java Problem
android cannot be resolved to a type   ILicenseResultListener.java   /Google Play License Library/library/src/com/google/android/vending/licensing   line 32   Java Problem
android cannot be resolved to a variable   DownloadThread.java   /Google Play Downloader Library/src/com/google/android/vending/expansion/downloader/impl   line 65   Java Problem
ActivityInstrumentationTestCase2 cannot be resolved to a type   ServerManagedPolicyTest.java   /Google Play License Library/test/src/com/android/vending/licensing   line 32   Java Problem
android cannot be resolved to a type   ILicenseResultListener.java   /Google Play License Library/library/src/com/google/android/vending/licensing   line 32   Java Problem
android cannot be resolved to a variable   DownloadThread.java   /Google Play Downloader Library/src/com/google/android/vending/expansion/downloader/impl   line 66   Java Problem
android cannot be resolved to a type   ILicenseResultListener.java   /Google Play License Library/library/src/com/google/android/vending/licensing   line 38   Java Problem
android cannot be resolved to a type   ILicenseResultListener.java   /Google Play License Library/library/src/com/google/android/vending/licensing   line 42   Java Problem
android cannot be resolved to a variable   DownloadThread.java   /Google Play Downloader Library/src/com/google/android/vending/expansion/downloader/impl   line 64   Java Problem
android cannot be resolved to a type   ILicenseResultListener.java   /Google Play License Library/library/src/com/google/android/vending/licensing   line 12   Java Problem
android cannot be resolved to a type   ILicenseResultListener.java   /Google Play License Library/library/src/com/google/android/vending/licensing   line 15   Java Problem
ActivityInstrumentationTestCase2 cannot be resolved to a type   ObfuscatedPreferencesTest.java   /Google Play License Library/test/src/com/android/vending/licensing   line 33   Java Problem
android cannot be resolved to a type   ILicenseResultListener.java   /Google Play License Library/library/src/com/google/android/vending/licensing   line 27   Java Problem
Activity cannot be resolved to a type   ObfuscatedPreferencesTest.java   /Google Play License Library/test/src/com/android/vending/licensing   line 37   Java Problem
Activity cannot be resolved to a type   ObfuscatedPreferencesTest.java   /Google Play License Library/test/src/com/android/vending/licensing   line 52   Java Problem
android cannot be resolved to a type   ILicenseResultListener.java   /Google Play License Library/library/src/com/google/android/vending/licensing   line 98   Java Problem
android cannot be resolved to a type   ILicenseResultListener.java   /Google Play License Library/library/src/com/google/android/vending/licensing   line 81   Java Problem
android cannot be resolved   ILicenseResultListener.java   /Google Play License Library/library/src/com/google/android/vending/licensing   line 83   Java Problem
android cannot be resolved to a type   ILicenseResultListener.java   /Google Play License Library/library/src/com/google/android/vending/licensing   line 83   Java Problem
android cannot be resolved to a type   ILicenseResultListener.java   /Google Play License Library/library/src/com/google/android/vending/licensing   line 69   Java Problem
android cannot be resolved to a type   ILicenseResultListener.java   /Google Play License Library/library/src/com/google/android/vending/licensing   line 68   Java Problem
android cannot be resolved to a type   ILicenseResultListener.java   /Google Play License Library/library/src/com/google/android/vending/licensing   line 73   Java Problem
ByteArrayEntity cannot be resolved to a type   AndroidHttpClient.java   /Google Play Downloader Library/src/com/google/android/vending/expansion/downloader/impl   line 372   Java Problem
ByteArrayEntity cannot be resolved to a type   AndroidHttpClient.java   /Google Play Downloader Library/src/com/google/android/vending/expansion/downloader/impl   line 366   Java Problem
AbstractHttpEntity cannot be resolved to a type   AndroidHttpClient.java   /Google Play Downloader Library/src/com/google/android/vending/expansion/downloader/impl   line 364   Java Problem
BaseColumns cannot be resolved to a variable   DownloadsDB.java   /Google Play Downloader Library/src/com/google/android/vending/expansion/downloader/impl   line 260   Java Problem
android cannot be resolved to a type   DownloadsDB.java   /Google Play Downloader Library/src/com/google/android/vending/expansion/downloader/impl   line 356   Java Problem
ClientConnectionManager cannot be resolved to a type   AndroidHttpClient.java   /Google Play Downloader Library/src/com/google/android/vending/expansion/downloader/impl   line 200   Java Problem
BaseColumns cannot be resolved to a variable   DownloadsDB.java   /Google Play Downloader Library/src/com/google/android/vending/expansion/downloader/impl   line 227   Java Problem
BasicHttpProcessor cannot be resolved to a type   AndroidHttpClient.java   /Google Play Downloader Library/src/com/google/android/vending/expansion/downloader/impl   line 225   Java Problem
ClientConnectionManager cannot be resolved to a type   AndroidHttpClient.java   /Google Play Downloader Library/src/com/google/android/vending/expansion/downloader/impl   line 222   Java Problem
BaseColumns cannot be resolved to a type   DownloadsDB.java   /Google Play Downloader Library/src/com/google/android/vending/expansion/downloader/impl   line 242   Java Problem
BaseColumns cannot be resolved to a type   DownloadsDB.java   /Google Play Downloader Library/src/com/google/android/vending/expansion/downloader/impl   line 220   Java Problem
BaseColumns cannot be resolved to a variable   DownloadsDB.java   /Google Play Downloader Library/src/com/google/android/vending/expansion/downloader/impl   line 426   Java Problem
android cannot be resolved to a type   ILicensingService.java   /Google Play License Library/library/src/com/google/android/vending/licensing   line 98   Java Problem
android cannot be resolved   ILicensingService.java   /Google Play License Library/library/src/com/google/android/vending/licensing   line 83   Java Problem
BroadcastReceiver cannot be resolved to a type   DownloaderService.java   /Google Play Downloader Library/src/com/google/android/vending/expansion/downloader/impl   line 448   Java Problem
android cannot be resolved to a type   ILicensingService.java   /Google Play License Library/library/src/com/google/android/vending/licensing   line 83   Java Problem
AbstractHttpEntity cannot be resolved to a type   AndroidHttpClient.java   /Google Play Downloader Library/src/com/google/android/vending/expansion/downloader/impl   line 362   Java Problem
Activity cannot be resolved to a type   MainActivity.java   /Google Play License Library/sample/src/com/example/android/market/licensing   line 198   Java Problem
BasicHttpParams cannot be resolved to a type   AndroidHttpClient.java   /Google Play Downloader Library/src/com/google/android/vending/expansion/downloader/impl   line 124   Java Problem
Button cannot be resolved to a type   MainActivity.java   /Google Play License Library/sample/src/com/example/android/market/licensing   line 150   Java Problem
Button cannot be resolved to a type   MainActivity.java   /Google Play License Library/sample/src/com/example/android/market/licensing   line 140   Java Problem
Button cannot be resolved to a type   MainActivity.java   /Google Play License Library/sample/src/com/example/android/market/licensing   line 129   Java Problem
android cannot be resolved to a variable   V3CustomNotification.java   /Google Play Downloader Library/src/com/google/android/vending/expansion/downloader/impl   line 68   Java Problem
BroadcastReceiver cannot be resolved to a type   DownloaderService.java   /Google Play Downloader Library/src/com/google/android/vending/expansion/downloader/impl   line 982   Java Problem
AlarmManager cannot be resolved to a type   DownloaderService.java   /Google Play Downloader Library/src/com/google/android/vending/expansion/downloader/impl   line 943   Java Problem
BroadcastReceiver cannot be resolved to a type   DownloaderService.java   /Google Play Downloader Library/src/com/google/android/vending/expansion/downloader/impl   line 1160   Java Problem

Post unito: [time]22 Marzo 2014, 09:11:00 CET[/time]
Ho provato a fare File->New->Other->Android project from existing code e ad aggiungere in questo modo le due librerie. Cosi facendo mi da errore solo sulla cartella Google Play Downloader Library e in particolare sulle righe

import com.google.android.vending.licensing.AESObfuscator;
import com.google.android.vending.licensing.APKExpansionPolicy;
import com.google.android.vending.licensing.LicenseChecker;
import com.google.android.vending.licensing.LicenseCheckerCallback;
import com.google.android.vending.licensing.Policy;

della classe DownloaderService.java, (Poi mi segna altri errori sempre nella stessa classe ma credo siano collegati agli errori dati alle 5 librerie importate sopra)

RISOLTO! dovevo solo aggiungere Google Play License Library a Google Play Downloader Library facendo tasto destro sulla Google Play Downloader Library properties android , add, scegliere la libreria e ok
« Ultima modifica: 22 Marzo 2014, 09:23:01 CET da metal90, Reason: Merged DoublePost »