gindpubs-frameworks
gindpubs-frameworks copied to clipboard
Help setting up GindPubs
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
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
The second, setting up GindPubs
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.
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.
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.
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
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
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.
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.
- Install Maven (in case you don't have it on your local system).
- Download GindPubs and unzip it (or just update your local repo).
- From console go to "GindpubsProject".
- run "gradlew install". <- this will place the library in your local maven repo.
- Then you can create a new project and reference GindPubs as a library.
- Replace your AndroidManifrest.xml with the GindPubs one.
- 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.
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!
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.
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
Hi @thpramos
So you did? Please help with a screenshot about the configuration! Could you do it?
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.