Do you want to change package name or application id?
Hi Anton,
Is it possible to change both? The package name and application id
I don't know why would you change package name, but it's certainly possible to change both.
I am trying to change it but I am getting errors in mainactivity can please tell me the correct steps to change this
What are the errors?
Have you updated source code to match your new package name?
Yes. I have tried different refactor methods in Android Studio but non of them works. can you please show me the correct way to rename the package.
Many thanks
Can you please explain the reason first.
Hi Anton,
I just managed to change the package name. But now I have another issue; I am trying to change the gradle version from 1.6 to 2.2 or 2.12 in gradle property file, but it not changing! is the 1.6 set somewhere other than the gradle-wrapper.properties file ?
Here is the error log file:
D:\newapp\app>gradlew packageRegularRelease
FAILURE: Build failed with an exception.
Build file 'D:\mynewapp\app\build.gradle' line: 1
A problem occurred evaluating project ':app'. > Gradle version 2.2 is required. Current version is 1.6. If using the gradle wrapper, try editing the distributionUrl in D:\mynewapp\gradle\wrapper\gradle-wrapper.properties to gradle-2.2-all.zip
BUILD FAILED Total time: 26.301 secs
Where did you find version 1.6? Traccar Client uses gradle version 2.6 at the moment.
Hi Anton,
Perhaps because downloaded wrong file! Alright, So now I downloaded the last version 3.9 one from github, and without changing anything in the code I imported all the files into Android Studio, and I ran the following command:
gradlew packageRegularRelease
ORgradlew assembleRegularRelease
but now i get this error:
could not create plugin of type "AppPlugin"
Can you please help.
Many thanks
It works for me. Try to run it from command line.
Hi Anton,
I tried to run it form command line, but i keep getting this error:
D:\appone>gradlew.bat packageRegularRelease FAILURE: Build failed with an exception. * Where: Build file 'D:\appone\app\build.gradle' line: 1 * What went wrong: A problem occurred evaluating project ':app'. > Could not create plugin of type 'AppPlugin'. * Try: Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. BUILD FAILED Total time: 20.02 secs
Hi Team,
How i can change package name org.traccar.client to different name in Android Studio?
thanks