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

Help setting up GindPubs #17

Open
CarpenterBug opened this issue Jan 22, 2014 · 14 comments
Open

Help setting up GindPubs #17

CarpenterBug opened this issue Jan 22, 2014 · 14 comments

Comments

@CarpenterBug
Copy link

Hello,

I'm trying to use GindPubs with my Baker magazine and I'm having some troubles setting up.

I've followed up and Android Studio keeps displaying the same error:
"Error running Teste: Gradle project sync failed. Please fix your project and try again."

Does anyone knows how to fix it?

Thank you so much

@fcontreras
Copy link
Owner

@CarpenterBug
Copy link
Author

The second, setting up GindPubs

@hsalazarl
Copy link
Collaborator

Hello @svennPT,

Did you follow the instructions on "4. Configure development environment." to setup the dependencies ?

Also, which version of android studio are you using? and, do you have any other information that might be relevant to the problem? such as logs or other errors ?

Thanks for your feedback, best regards.

@CarpenterBug
Copy link
Author

Hi @hsalazarl,

Yes, I've followed those instructions, I've downloaded/updated the API's, SDK's and libraries and changed the SDK version on the grandle file.

I'm using Android Studio v0.4.2 and the only thing that I've done was install Android Studio, updated it and follow the "Setting up GindPubs".

That's the only error. I clean the project, rebuild it and when I try to run it, it fails because that error.

@hsalazarl
Copy link
Collaborator

hello @svennPT,

sorry to keep you waiting, we were investigating this issue and found that the project won't compile when using some configuration. This issue was also reported here:

http://stackoverflow.com/questions/21072381/gradle-keep-on-asking-update-and-downgrade

and there was also an issue on google here: https://code.google.com/p/android/issues/detail?id=65219

The error occurs mostly in Android Studio 0.4.2 and 0.4.3, if you can, try to update to AS 0.4.4, we also made some changes in the configuration of the project to help solve this and other problems, please update your code and try to compile the project again.

Best regards.

@mtamony
Copy link

mtamony commented Feb 19, 2014

I can't get this to do anything but throw errors.

Gradle 'GindpubsProject' project refresh failed:
A fatal exception has occurred. Program will exit.
: Gradle settings

Steps 2. is way vague and Step 3 has nothing that looks like these directions.
https://github.com/fcontreras/gindpubs-frameworks/wiki/Create-custom-version-of-Gindpubs

@fcontreras
Copy link
Owner

Hi guys..

Thanks for reporting our faulty docs, we recently changed our build system to make it easier for you to compile and build your projects.

Will be updating the docs as soon as possible.

Regards

@bobwol
Copy link

bobwol commented Feb 27, 2014

I tried to build today with 0.4.2, latest master and it didn't work. But get a new error: Could not create plugin of type 'LibraryPlugin'.
I tried to update the As to 0.4.4 using the canary channel, but it says 0.4.2 is the latest version (I don't understand why it didn't update...).

I know that AS is still a preview tool with a lot of bugs and also have issues with different versions of Gradle, Maven, Java, ... but we need to have a working environment to build the latest master.

If you could update the wiki with instructions to "set the environment" and to "create custom versions", will help us a lot.

@fcontreras
Copy link
Owner

Hi guys

The app itself was transformed into a library that is compiled with gradle in order to place it into your local Maven repo.

This process needs to be done outside the AS environment since AS has some troubles creating "aar" files, thats a new step that will easy your project creation and update for later. The idea is that whenever we create a new version you can download the frameworks compile it and just update the reference in your own project and that should complete the upgrade of your project, which we think will help a lot of the community when it comes to creating and updating.

We are still working and debugging the last version of the docs we will place in the wiki so you can get good and easy to follow steps but as a quick guide this is what you need to do to build with the latest.

  1. Install Maven (in case you don't have it on your local system).
  2. Download GindPubs and unzip it (or just update your local repo).
  3. From console go to "GindpubsProject".
  4. run "gradlew install". <- this will place the library in your local maven repo.
  5. Then you can create a new project and reference GindPubs as a library.
  6. Replace your AndroidManifrest.xml with the GindPubs one.
  7. Add your own assets.

Im adding a downloadable project that may save you steps 5 and 6, but please check your SDK and local configs before running.
https://dl.dropboxusercontent.com/u/13887688/GindpubsBasedApp.zip

Finally... we are still working on the official doc and this sample project may become part of it when is fully verified. Let us know if you have any other issue.

@bobwol
Copy link

bobwol commented Feb 27, 2014

Hi @fcontreras
Thanks for your efforts. I'm downloading the sample to test it.
Glad to know that new docs are in process.

I'm really sure that after have a working environment we can contribute easier and faster to the project, helping the community.
Thanks again!

@bobwol
Copy link

bobwol commented Mar 12, 2014

Hi guys!

I had downloaded your code but it doesn't run out of the box in Android Studio 0.4.2 and related steps. I'm still missing something.

I was looking on the files and folders of this project, and it's quite different from the wiki. Hope the new doc solve a bunch of issues I'm having.

Glad to know if you have some news about it.

@thpramos
Copy link

I can't believe that I passed the whole morning trying to make it work, then I saw the import as "android-library" and figured out the "problem"... So dumb of me but AS still troubles me sometimes...

When I saw I imagined that you guys were doing something like what you told and I'll for sure follow your directions. Before I could make by returning it to a normal Android Application. :/

You guys are doing a really great job and I'll for sure contribute with fixing issues that I find on my way.

Thanks

@bobwol
Copy link

bobwol commented Mar 14, 2014

Hi @thpramos

So you did? Please help with a screenshot about the configuration! Could you do it?

@thpramos
Copy link

Hey @RobsonW !
The way I did is probably the worse way, and I'll for sure try to implement this week following the steps proposed above, and if I get it working I'll to post my steps here.

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

No branches or pull requests

6 participants