Log in or register to post comments

Package name changes

January 21, 2014 - 11:08am #1

I'm using ImageTargets-2-6-7. I used ndk-build for my project. I changed the app name. But where to change the package name? what are all other files i need to change depend on package name? Is i need to change anything in cpp file?

Package name changes

January 22, 2014 - 10:04am #7

Ok, so, if the app was accepted by only changing the manifest, this should be sufficient.

 

Package name changes

January 22, 2014 - 9:02am #6

When i use AndroidTools->Rename application package the package changed only in manifest file .Then exported with privatekey and uploaded for testing in google play. This apk accepted. Is i need to rename the Java class?

Package name changes

January 22, 2014 - 8:55am #5

The AndroidTools->Rename application package command should basically go through all the Java classes and packages and apply the rename in one go;  this might be sufficient, in theory;

however, if your project contains some native C++ code, I'm not sure if Eclipse would also take care of modifying the native code to reflect the new package names.

So, the safest is to check the C++ files and update manually.

 

Package name changes

January 22, 2014 - 8:24am #4

Is definetly rename the Java package?  because I changed the android package using right click project AndroidTools->Rename application package. Is it enough for upload apk to play store?

Package name changes

January 22, 2014 - 4:38am #3

In case you renamed the Java package and/or class names, you might get an UnsatisfiedLinkError due to the fact that you did not rename the C++ native functions accordingly; for instance, if your package name is:

com.my.company.ImageTargets (instead of com.qualcomm.QCARSamples.ImageTargets);

and your main Java class is called:

com.my.company.ImageTargets.ImageTargets  (instead ofcom.qualcomm.QCARSamples.ImageTargets.ImageTargets),

then the native functions (defined in your .cpp files in the JNI folder) will have to be renamed like in this example:

Java_com_qualcomm_QCARSamples_ImageTargets_ImageTargets_initApplicationNative

must be renamed to:

Java_com_my_company_ImageTargets_ImageTargets_initApplicationNative

Then, as usual, remember to run ndk-build again and refresh the Java project in Eclipse.

 

See also:

https://developer.vuforia.com/forum/faq/android-how-do-i-fix-my-compile-or-runtime-errors

 

Package name changes

January 22, 2014 - 2:53am #2

Hello ,

 

I have the same problem and "google play" don't allow me to upload my App because there is another Application with the same package name "com.qualcomm.QCARSample...."

 

I tryed these steps :

 

1- i have changed the package name

2- changed ImageTargets.cpp lines (java_qualcomm.QCA.....) with (java_my_new_package_name...)

3- on manifest also i updated the package

4-runed the ndk-build  ->refrech -> build and run

 

..... still have an error i don't remember the exact text but it's on /lib  ....... (code=1)

 

Can any one tell us how to manage this ??

 

 

Log in or register to post comments