compilation fails after creating project

8 views
Skip to first unread message

Raul Perez-Alejo Neyra

unread,
Apr 18, 2017, 5:07:22 PM4/18/17
to Ruboto (JRuby on Android)
Hello guys, i am willing to use ruboto for a simple app.

my environment:
ruby 2.3.0
ruboto 1.6.1
openjdk version "1.8.0_91"
OpenJDK Runtime Environment (build 1.8.0_91-8u91-b14-3ubuntu1~16.04.1-b14)
OpenJDK 64-Bit Server VM (build 25.91-b14, mixed mode)

After creating my first project and trying to compile it with:

rake install start

i get the following error, not sure if it is a JAVA one but any way i have both variables set [ADROID, JAVA]_HOME.

*********error***************


2017-04-18 15:06:08 $ rake install start
ant debug
Buildfile: /home/raul/work/client/build.xml
Trying to override old definition of task dex-helper

-set-mode-check:

-set-debug-files:

-check-env:
 [checkenv] Android SDK Tools Revision 25.2.2
 [checkenv] Installed at /media/raul/datos/android-sdk-linux

-setup:
     [echo] Project Name: Client
  [gettype] Project Type: Application

-set-debug-mode:

-debug-obfuscation-check:

-pre-build:

-build-setup:
[getbuildtools] Using latest Build Tools: 24.0.3
     [echo] Resolving Build Target for Client...
[gettarget] Project Target:   Android 4.4.2
[gettarget] API level:        19
     [echo] ----------
     [echo] Creating output directories if needed...
    [mkdir] Created dir: /home/raul/work/client/bin/rsObj
    [mkdir] Created dir: /home/raul/work/client/bin/rsLibs
     [echo] ----------
     [echo] Resolving Dependencies for Client...
[dependency] Library dependencies:
[dependency] No Libraries
[dependency]
[dependency] ------------------
     [echo] ----------
     [echo] Building Libraries with 'debug'...
   [subant] No sub-builds to iterate on

-code-gen:
[mergemanifest] No changes in the AndroidManifest files.
     [echo] Handling aidl files...
     [aidl] No AIDL files to compile.
     [echo] ----------
     [echo] Handling RenderScript files...
     [echo] ----------
     [echo] Handling Resources...
     [aapt] No changed resources. R.java and Manifest.java untouched.
     [echo] ----------
     [echo] Handling BuildConfig class...
[buildconfig] Generating BuildConfig class.

-pre-compile:

-compile:
    [javac] Compiling 13 source files to /home/raul/work/client/bin/classes
    [javac] warning: [options] source value 1.5 is obsolete and will be removed in a future release
    [javac] warning: [options] target value 1.5 is obsolete and will be removed in a future release
    [javac] warning: [options] To suppress warnings about obsolete options, use -Xlint:-options.
    [javac] /home/raul/work/client/src/org/ruboto/EntryPointActivity.java:14: error: cannot find symbol
    [javac] public class EntryPointActivity extends org.ruboto.RubotoActivity {
    [javac]                                                   ^
    [javac]   symbol:   class RubotoActivity
    [javac]   location: package org.ruboto
    [javac] /home/raul/work/client/src/org/ruboto/RubotoDialog.java:10: error: cannot find symbol
    [javac] public class RubotoDialog extends RubotoActivity {
    [javac]                                   ^
    [javac]   symbol: class RubotoActivity
    [javac] /home/raul/work/client/src/org/ruboto/EntryPointActivity.java:20: error: cannot find symbol
    [javac]             getScriptInfo().setRubyClassName(getClass().getSimpleName());
    [javac]                                              ^
    [javac]   symbol:   method getClass()
    [javac]   location: class EntryPointActivity
    [javac] /home/raul/work/client/src/org/ruboto/EntryPointActivity.java:20: error: cannot find symbol
    [javac]             getScriptInfo().setRubyClassName(getClass().getSimpleName());
    [javac]             ^
    [javac]   symbol:   method getScriptInfo()
    [javac]   location: class EntryPointActivity
    [javac] /home/raul/work/client/src/org/ruboto/EntryPointActivity.java:23: error: cannot find symbol
    [javac]             finish();
    [javac]             ^
    [javac]   symbol:   method finish()
    [javac]   location: class EntryPointActivity
    [javac] /home/raul/work/client/src/org/ruboto/EntryPointActivity.java:26: error: cannot find symbol
    [javac]         super.onCreate(bundle);
    [javac]         ^
    [javac]   symbol:   variable super
    [javac]   location: class EntryPointActivity
    [javac] /home/raul/work/client/src/org/ruboto/EntryPointActivity.java:30: error: no suitable constructor found for Intent(EntryPointActivity,Class<SplashActivity>)
    [javac]         Intent splashIntent = new Intent(this, SplashActivity.class);
    [javac]                               ^
    [javac]     constructor Intent.Intent(String,Uri) is not applicable
    [javac]       (argument mismatch; EntryPointActivity cannot be converted to String)
    [javac]     constructor Intent.Intent(Context,Class<?>) is not applicable
    [javac]       (argument mismatch; EntryPointActivity cannot be converted to Context)
    [javac] /home/raul/work/client/src/org/ruboto/EntryPointActivity.java:32: error: cannot find symbol
    [javac]         startActivity(splashIntent);
    [javac]         ^
    [javac]   symbol:   method startActivity(Intent)
    [javac]   location: class EntryPointActivity
    [javac] /home/raul/work/client/src/org/ruboto/EntryPointActivity.java:38: error: cannot find symbol
    [javac]         if (getIntent().getAction() == null || !getIntent().getAction().equals(Intent.ACTION_VIEW)) {
    [javac]             ^
    [javac]   symbol:   method getIntent()
    [javac]   location: class EntryPointActivity
    [javac] /home/raul/work/client/src/org/ruboto/EntryPointActivity.java:38: error: cannot find symbol
    [javac]         if (getIntent().getAction() == null || !getIntent().getAction().equals(Intent.ACTION_VIEW)) {
    [javac]                                                 ^
    [javac]   symbol:   method getIntent()
    [javac]   location: class EntryPointActivity
    [javac] /home/raul/work/client/src/org/ruboto/EntryPointActivity.java:39: error: cannot find symbol
    [javac]             return new Intent(getIntent()).setAction(Intent.ACTION_VIEW);
    [javac]                               ^
    [javac]   symbol:   method getIntent()
    [javac]   location: class EntryPointActivity
    [javac] /home/raul/work/client/src/org/ruboto/EntryPointActivity.java:41: error: cannot find symbol
    [javac]             return getIntent();
    [javac]                    ^
    [javac]   symbol:   method getIntent()
    [javac]   location: class EntryPointActivity
    [javac] Note: Some input files use or override a deprecated API.
    [javac] Note: Recompile with -Xlint:deprecation for details.
    [javac] Note: Some input files use unchecked or unsafe operations.
    [javac] Note: Recompile with -Xlint:unchecked for details.
    [javac] Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
    [javac] 12 errors
    [javac] 3 warnings

BUILD FAILED
/media/raul/datos/android-sdk-linux/tools/ant/build.xml:716: The following error occurred while executing this line:
/media/raul/datos/android-sdk-linux/tools/ant/build.xml:730: Compile failed; see the compiler error output for details.

Total time: 1 second
rake aborted!
Command failed with status (1): [ant debug...]
/home/raul/work/client/rakelib/ruboto.rake:980:in `build_apk'
/home/raul/work/client/rakelib/ruboto.rake:547:in `block in <top (required)>'
/home/raul/.rvm/gems/ruby-2.3.0/gems/rake-12.0.0/exe/rake:27:in `<top (required)>'
/home/raul/.rvm/gems/ruby-2.3.0/bin/ruby_executable_hooks:15:in `eval'
/home/raul/.rvm/gems/ruby-2.3.0/bin/ruby_executable_hooks:15:in `<main>'
Tasks: TOP => install => /home/raul/work/client/bin/Client-debug.apk
(See full trace by running task with --trace)





Reply all
Reply to author
Forward
0 new messages