- Sort Posts
- 6 replies
- Last post
Package name changes
Package name changes
Package name changes
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
Package name changes
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
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 ??
Ok, so, if the app was accepted by only changing the manifest, this should be sufficient.