java - How can I rename this Android Project with hardcoded libraries -


currently using android studio make first app. using library believe requires app called "com.camera.simplemjpeg" , if try refactor name app crashes when trying utilize library. there way around this?

in android studio, can this:

for example, if want change com.example.app my.awesome.game, then:

  1. in project pane, click on little gear icon ( gears icon )

  2. uncheck / de-select compact empty middle packages option

compact empty middle packages

  1. your package directory broken in individual directories

  2. individually select each directory want rename, and:

    • right-click it
    • select refactor
    • click on rename
    • in pop-up dialog, click on rename package instead of rename directory
    • enter new name , hit refactor
    • allow minute let android studio update changes
    • note: when renaming com in android studio, might give warning. in such case, select rename all

enter image description here

  1. now open gradle build file (build.gradle - app or mobile). update applicationid new package name , sync gradle, if hasn't been updated automatically:

refactor directories

  1. done! anyways, android studio needs make process little simpler.

Comments

Popular posts from this blog

php - Auto increment employee ID -

php - isset function not working properly -

firebird - Error "invalid transaction handle (expecting explicit transaction start)" executing script from Delphi -