gindpubs-frameworks icon indicating copy to clipboard operation
gindpubs-frameworks copied to clipboard

Help setting up GindPubs

Open CarpenterBug opened this issue 11 years ago • 14 comments

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

CarpenterBug avatar Jan 22 '14 17:01 CarpenterBug

Hello @svennPT, are you trying a custom build? https://github.com/fcontreras/gindpubs-frameworks/wiki/Create-custom-version-of-Gindpubs

or setting up GindPubs? https://github.com/fcontreras/gindpubs-frameworks/wiki/Setting-up-GindPubs

fcontreras avatar Jan 22 '14 18:01 fcontreras

The second, setting up GindPubs

CarpenterBug avatar Jan 22 '14 18:01 CarpenterBug

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.

hsalazarl avatar Jan 22 '14 21:01 hsalazarl

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.

CarpenterBug avatar Jan 23 '14 11:01 CarpenterBug

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.

hsalazarl avatar Feb 11 '14 16:02 hsalazarl

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

mtamony avatar Feb 19 '14 23:02 mtamony

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

fcontreras avatar Feb 26 '14 16:02 fcontreras

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.

bobwol avatar Feb 27 '14 01:02 bobwol

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.

fcontreras avatar Feb 27 '14 04:02 fcontreras

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 avatar Feb 27 '14 13:02 bobwol

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.

bobwol avatar Mar 12 '14 01:03 bobwol

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

thpramos avatar Mar 14 '14 18:03 thpramos

Hi @thpramos

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

bobwol avatar Mar 14 '14 19:03 bobwol

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.

thpramos avatar Mar 17 '14 12:03 thpramos