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

How to change the app_id #7

Closed
bobwol opened this issue Oct 15, 2013 · 14 comments
Closed

How to change the app_id #7

bobwol opened this issue Oct 15, 2013 · 14 comments
Assignees

Comments

@bobwol
Copy link

bobwol commented Oct 15, 2013

Hey! How are you doing?

I would like to change the app_id from: com.ginien.gindpubs to com.mydomain.myappname

I try to change in the string.xml, but in the debug logcat it still show com.giniem.gindpubs

The issue: if I have 2 apps with the same app_id, when I'll install the 2nd app it will install over the 1st.
Hope you understand this issue.

I try to run the Refactor in the Android Studio but it crashed the code.

@ghost ghost assigned hsalazarl Oct 15, 2013
@bobwol
Copy link
Author

bobwol commented Oct 17, 2013

Are there any news on this? I try some more ways to change:

  • refactor the src folder
  • change the folder name
  • change package name

but all my tries crashed the code...

Do we have to change all com.giniem.gindpubs entries manually, before importing to Android Studio?

@hsalazarl
Copy link
Collaborator

yes, we are progressing in this issue, we have found a way, but we are trying to ensure that there is not a better and easier way to do it.

We will report soon.

Best regards.

@bobwol
Copy link
Author

bobwol commented Oct 17, 2013

Glad to hear you!
Best regards!

@hsalazarl
Copy link
Collaborator

Hello Robson,

We have added support for the users to create their apps based on Gindpubs, giving the possibilities to create several standalone versions of the app.

Please update your project from: c31b0d4

And you can follow this guide we created in simple and detailed steps:

https://github.com/fcontreras/gindpubs-frameworks/wiki/Create-custom-version-of-Gindpubs

Now you can create your different versions of the app. :)

Best regards.

@bobwol
Copy link
Author

bobwol commented Oct 28, 2013

Hello @hsalazarl Thanks for the update on this!

I downloaded the commited update and follow the steps on the guide, but I was unable to import the Gindpubs module, since in the project directory it doesn't have the Gindpubs.iml file.

Anyway, I choose to create a module from existing files during the import step. The file Gindpubs.iml was automatically created. All appears ok till now.

Following the steps and all is ok till the Run, with the error message:

Error: Gradle: Execution failed for task ':TestMag:dexDebug'.
> Could not call incrementalTask.taskAction() on task ':TestMag:dexDebug'.

TestMag is my project name.

Any thoughts on this?

screen shot 2013-10-28 at 7 48 03 pm

@hsalazarl
Copy link
Collaborator

Hello @RobsonW!

Recently we have found that supporting 2 different styles or project structure for Gindpubs is causing the project to become harder to manage and building.

Because of that, we also have found some problems when it becomes to deploy the application. So, we have decided to make the needed modifications to the project to adapt it to better management and building system.

That's why we have decided to use Gradle and Android Studio to keep track of our project's configuration and behaviour.

You are able to download the newly structured project at f51cc97

Please, make a new clone of our repository and give it a try, it will be more easy to configure and make it run.

We also have updated our wiki towards this situation: https://github.com/fcontreras/gindpubs-frameworks/wiki/Setting-up-GindPubs

With this, we hope that the build problems go away and we create a better project for the community to use and support.

Best regards.

@bobwol
Copy link
Author

bobwol commented Oct 31, 2013

Hi @hsalazarl
Thanks for your effort to review the code structure to provide this main feature. Really awesome.
Just to clarify:

  1. I start on this: https://github.com/fcontreras/gindpubs-frameworks/wiki/Setting-up-GindPubs

  2. And after this: https://github.com/fcontreras/gindpubs-frameworks/wiki/Create-custom-version-of-Gindpubs

Is that correct?

@hsalazarl
Copy link
Collaborator

Hello,

Yes, that is correct @RobsonW

@bobwol
Copy link
Author

bobwol commented Nov 1, 2013

I 'm trying to put it to work since yesterday, but still without success. I think I missing something.

First I had to remove the Library: ComGoogleAndroidGmsPlayServices3225.aar
Without that, the project didn't compile.

Issue from step 1) I'm not able to run the app, since the apk was not installed in the emulator.

In the log:

"Local path doesn't exist"

Anyway, I config the project as said in the Step 2. The screen to check "Library Module" didn't appear in the Project Structure.

I moved on.

Issue from step 2) Apk was created and installed on emulator. The app crashes when I run it, with the message: "Unfortunately, Magazine has stopped."

In the log:

"...
PR_CAPBSET_DROP 33 failed: Invalid Argument. Please make sure your kernel is compiled with file capabilities support enabled.
...
java.lang.RuntimeException: Unable to instantiate activity ComponentInfo{com.mycompany.magazine/com.giniem.gindpubs.GindActivity}:
...
Didn't find class "com.giniem.gindpubs.GindActivity" ..

..."

I think all errors are related to the "Library Module" checkbox.

If you need more info about, please let me know.

@fcontreras
Copy link
Owner

Greetings @RobsonW to easy support and be able to help you and the community better we added numbers to each of the steps in the two guides we have right now.

For the first issue you mention.. can you please specify which of the guides you were following, is the GinDPubs project the one not running or your custom app?

It will be useful if you can go step by step (as you were doing) but stop on a fail, and send us the log and some screenshots if possible, that way you can easy our research and we can help you faster and also improve our Wiki.

Thanks.

@fcontreras
Copy link
Owner

Extra info

With a clean environment I was testing the guide on the Wiki and found the following issue, when finish installing all packages and click run on the project

Waiting for device.
"/Applications/Android Studio.app/sdk/tools/emulator" -avd Nexus_768x1280 -netspeed full -netdelay none

emulator: Failed to open the hax module
HAX is not working and emulator runs in emulation mode

emulator: emulator window was out of view and was recentered

Device connected: emulator-5554
Device is online: emulator-5554
Target device: Nexus_768x1280 [emulator-5554]
Uploading file
    local path: /<my local path>/gindpubs-frameworks/GindpubsProject/Gindpubs/build/apk/Gindpubs-debug-unaligned.apk
    remote path: /data/local/tmp/com.giniem.gindpubs
Local path doesn't exist.

Events log looks like this

8:39:20 PM NullPointerException: null
8:40:21 PM Compilation completed successfully in 43 sec
8:40:53 PM All files are up-to-date
8:43:47 PM All files are up-to-date
8:44:59 PM Unexpected Error
           Local path doesn't exist.
           Local path doesn't exist.
           The project may need to be synced with Gradle files.

This confirms the issue that was posted by @RobsonW

@fcontreras
Copy link
Owner

FIX: Clean and rebuild

Go to menu
Build > Clean Project

Then
Build > Rebuild Project

@fcontreras
Copy link
Owner

You can also try to sync your gradle files

sync-gradle

@fcontreras
Copy link
Owner

closing this one. Please reopen if you still have issues with the process.

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

3 participants