Long package name build error in Android Studio

前端 未结 2 1512
清歌不尽
清歌不尽 2021-01-25 19:36

The package name of my app is very long:

app.running.com.voice.and.service.song.backup.audio.run.inthe.background

This is a B2B project and I c

相关标签:
2条回答
  • 2021-01-25 19:53

    If you are using Windows 10 as the OS and have install the anniversary update (Use this link by tuneComp to verify if you have installed the anniversary update), then you could follow this instructions by howToGeek to enable long file path which should fix your issue.

    0 讨论(0)
  • 2021-01-25 20:05

    package name don't have anything wrong with it as far as i know
    as log say's error is at \build\generated my first suggestion is to clean project with command

    $ gradlew clean 
    

    at root of your project if it's unable to clean delete manually

    • android/build
    • android/app/build

    don't worry the are generated files . then type in root of project

    $ gradlew build
    

    be sure your connected to internet to get needed lib from maven or etc.

    0 讨论(0)
提交回复
热议问题