Error While generating APK

294 views
Skip to first unread message

Poonam Sharma

unread,
Aug 26, 2015, 2:44:53 AM8/26/15
to rhomobile
Hi, I am getting this error while generating apk (RMS : 5.1.1)

CMD: "C:/Program Files/Java/jdk1.8.0_60/bin/javac.exe" -g -d C:/PS/RHOPROJECTS/ePOD/bin/tmp/Rhodes -source 1.6 -target 1.6 -nowarn -encoding latin1 -classpath "C:/Program Files (x86)/Android/android-sdk/platforms/android-23/android.jar;C:/PS/RHOPROJECTS/ePOD/bin/tmp/Rhodes;C:/Program Files (x86)/Android/android-sdk/extras/android/support/v4/android-support-v4.jar" @C:/PS/RHOPROJECTS/ePOD/bin/tmp/RhodesSRC_build.files
platform\android\Rhodes\src\com\rhomobile\rhodes\event\Event.java:34: error: package org.apache.http.impl.cookie does not exist
import org.apache.http.impl.cookie.DateUtils;
                                  ^
platform\android\Rhodes\src\com\rhomobile\rhodes\mapview\Request.java:35: error: package org.apache.http does not exist
import org.apache.http.HttpResponse;
                      ^
platform\android\Rhodes\src\com\rhomobile\rhodes\mapview\Request.java:36: error: package org.apache.http.client does not exist
import org.apache.http.client.HttpClient;
                             ^
platform\android\Rhodes\src\com\rhomobile\rhodes\mapview\Request.java:37: error: package org.apache.http.client.methods does not exist
import org.apache.http.client.methods.HttpGet;
                                     ^
platform\android\Rhodes\src\com\rhomobile\rhodes\mapview\Request.java:38: error: package org.apache.http.impl.client does not exist
import org.apache.http.impl.client.DefaultHttpClient;
                                  ^
platform\android\Rhodes\src\com\rhomobile\rhodes\mapview\Request.java:192: error: cannot find symbol
 private HttpGet mRequest;
         ^
  symbol:   class HttpGet
  location: class Request
platform\android\Rhodes\src\com\rhomobile\rhodes\mapview\MapBitmapManager.java:35: error: package org.apache.http does not exist
import org.apache.http.HttpResponse;
                      ^
platform\android\Rhodes\src\com\rhomobile\rhodes\mapview\MapBitmapManager.java:36: error: package org.apache.http.client does not exist
import org.apache.http.client.HttpClient;
                             ^
platform\android\Rhodes\src\com\rhomobile\rhodes\mapview\MapBitmapManager.java:37: error: package org.apache.http.client.methods does not exist
import org.apache.http.client.methods.HttpGet;
                                     ^
platform\android\Rhodes\src\com\rhomobile\rhodes\mapview\MapBitmapManager.java:38: error: package org.apache.http.impl.client does not exist
import org.apache.http.impl.client.DefaultHttpClient;
                                  ^
platform\android\Rhodes\src\com\rhomobile\rhodes\event\Event.java:152: error: cannot find symbol
                    recurrenceEnd = DateUtils.parseDate(nameVal[1], new String[] {FORMAT_RRULE});
                                    ^
  symbol:   variable DateUtils
  location: class Event
platform\android\Rhodes\src\com\rhomobile\rhodes\mapview\Request.java:58: error: cannot find symbol
  HttpGet r = mRequest;
  ^
  symbol:   class HttpGet
  location: class Request
platform\android\Rhodes\src\com\rhomobile\rhodes\mapview\Request.java:129: error: cannot find symbol
            HttpClient client = new DefaultHttpClient();
            ^
  symbol:   class HttpClient
  location: class Request
platform\android\Rhodes\src\com\rhomobile\rhodes\mapview\Request.java:129: error: cannot find symbol
            HttpClient client = new DefaultHttpClient();
                                    ^
  symbol:   class DefaultHttpClient
  location: class Request
platform\android\Rhodes\src\com\rhomobile\rhodes\mapview\Request.java:131: error: cannot find symbol
            mRequest = new HttpGet();
                           ^
  symbol:   class HttpGet
  location: class Request
platform\android\Rhodes\src\com\rhomobile\rhodes\mapview\Request.java:133: error: cannot find symbol
            HttpResponse response = client.execute(mRequest);
            ^
  symbol:   class HttpResponse
  location: class Request
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
16 errors
rake aborted!
Error compiling java code

Tasks: TOP => run:android => run:android:emulator => run:android:emulator:build => device:android:debug => package:android => build:android:all => build:android:rhodes
(See full trace by running task with --trace)

RET: 1



Thanks,
Poonam

awexfwex

unread,
Aug 31, 2015, 6:02:43 PM8/31/15
to rhomobile
Had the same problem, looks like android 6.0.0 not supported yet.

In rhodes-x.x.x\platform\android\build\android.rake line 431, you could temporarily change it to

next if entry == '.' or entry == '..' or entry == '23.0.0' #MARKER:android6.0.0 notsupportedyet


Poonam Sharma

unread,
Sep 1, 2015, 3:59:39 AM9/1/15
to rhomobile
thanks, after doing a uninstall for API 23, its working fine.

Jon Tara

unread,
Sep 2, 2015, 2:40:38 AM9/2/15
to rhomobile
I didn't remove API 23, but I did manually install the missing bits:


I thought this might be missing because a prerequisite missing in Rhodes, but now I think there is a prerequisite missing from API 23. (But still don't know for sure if Rhodes actually supports API 23...)

Also, note that I don't think JRE 1.8 is supported for Android SDK. I am using 1.7.
Reply all
Reply to author
Forward
0 new messages