Android Runtime error :ReportedException: org.gradle.internal.exceptions.LocationAwareException

后端 未结 6 2141

I had search solution for this ReportedException: org.gradle.internal.exceptions.LocationAwareException from two days. I know may be this question is duplic

相关标签:
6条回答
  • 2020-12-15 21:14

    Basically you just have to check all .java or .kt files by opening each file and see if there is an error, because android studio is not detecting that error

    0 讨论(0)
  • 2020-12-15 21:18

    I know it's a small problem and the solution, but the error log was confused a lot. I think the problem in android studio 3.1 because problem was simple one but not detected properly in android studio 3.1. When i build the project there was no error detected.

    But by the cross checking error detected inside the java class:

    May be this will helping someone beginner like me that why i answered. _Happy coding : )

    0 讨论(0)
  • 2020-12-15 21:18

    I get org.gradle.initialization.ReportedException: org.gradle.internal.exceptions.LocationAwareException: for missing translations. It was handled by older versions of Android Studio.

    0 讨论(0)
  • 2020-12-15 21:24

    This usually happens when we mess something in the code, like id or wrong imports, you can use

    gradlew assembleDebug --info

    to compile the code and see for detailed error logs. There you'll find what you messed up.

    0 讨论(0)
  • 2020-12-15 21:26

    If you have more than one module in your project, make sure that every single resource is in their corresponding module. Also, try to check every single XML, C++, Kotlin and Java files to see if something in your code is not mentioning a resource that does not exist. Also check if translated files have something that the source file doesn't have.

    0 讨论(0)
  • 2020-12-15 21:35

    Manual Proxy

    You can contact your office people to get Proxy of your company. Set it in

    File-Settings-System Settings-HTTP Proxy.

    Select Manual Proxy Configuration and enter proxy detail.

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