Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configuring eclipse #87

Open
ddyer0 opened this issue May 7, 2015 · 5 comments
Open

Configuring eclipse #87

ddyer0 opened this issue May 7, 2015 · 5 comments

Comments

@ddyer0
Copy link

ddyer0 commented May 7, 2015

I'm trying to configure KeepScore to build using eclipse, with maven plugin, and the
external actionbarsherlock project. I'm not quite there; the build step go generate com.nolanlawson.keepscore.R isn't working.

If one of you contributors could spare time for a short consultation, I'm sure I can get
in business. I'm very familiar with Java and Eclipse, but not with the android tools.

@nolanlawson
Copy link
Owner

This is a very old project, so you might actually have better luck if you try using the "Import" feature in Android Studio. Else your issue may be that you didn't download ActionBarSherlock and put it in your workspace.

Alternatively, you can just build it with Maven as described in the documentation. It hardly matters if you can build it in Eclipse or not, if you're able to build it on the command line. 😉

@ddyer0
Copy link
Author

ddyer0 commented May 7, 2015

I backed off and reiterated the instructions. Building ambilwarna seemed to be successful.
This is the error I get from maven building keepscore according to the instructions in the readme:

[ERROR] Failed to execute goal com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.6.0:generate-sources
(default-generate-sources) on project keepscore: Execution default-generate-sources of goal
com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.6.0:generate-sources failed:
A required class was missing while executing com.jayway.maven.plugins.android.generation2:android-maven-lugin:3.6.0:generate-sources:
Lorg/sonatype/aether/RepositorySystem;

@ddyer0
Copy link
Author

ddyer0 commented May 9, 2015

Allright, I eventually determined that this problem was due to the latest version of Mavin (3.3) being
incompatible with the keepscore build. I reverted to Mavin 3.0.x and the build seems to be successful - it at least produces keepscore.apk

The next issue is to get a reasonable development/debug environment. Connecting my android device
results in this complaint at the end of the mavin build:

[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- android-maven-plugin:3.6.0:deploy (default-cli) @ keepscore ---
[INFO] Waiting for initial device list from the Android Debug Bridge
[INFO] Found 1 devices connected with the Android Debug Bridge
[INFO] android.device parameter not set, using all attached devices
[INFO] Device 20080411_unknown_AX105 found.
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Skipping KeepScore
[INFO] This project has been banned from the build due to previous failures.
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 30.230s
[INFO] Finished at: Sat May 09 15:42:07 PDT 2015
[INFO] Final Memory: 27M/192M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.jayway.maven.plugins.android.generation2:android-maven-plugin:3.6.0:deploy (default-c
li) on project keepscore: 20080411_unknown_AX105 : Install of G:\share\projects\keepscore\KeepScore\KeepScore\target\k
eepscore.apk failed - [INSTALL_PARSE_FAILED_INCONSISTENT_CERTIFICATES] -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException
G:\share\projects\keepscore\KeepScore\KeepScore>

.. but I would much prefer to do routine development on a simulator - surely there's a way to do that?
And the original keepscore.R.java file that eclipse was looking for still doesn't exist. Importing keepscore into eclipse using the mavin plugin produces a nonfunctional project.

@ddyer0
Copy link
Author

ddyer0 commented May 9, 2015

Ok, success at last. The final secret was to uninstall the standard version of keepscore from the device.

Some things you could add to the README to get the next victim off the starting line a little faster:

  1. you have to use mavin 3.0.x, rather than the latest
  2. you'll have to download very old android sdks (because keepscore runs on very old devices)
  3. uninstall existing keepscore before debugging

@nolanlawson
Copy link
Owner

Can you open a pull request to change the README? Would be helpful I'm sure. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants