android studio jar文件是红色的?

时间:2022-10-20 18:30:04

I'm curious what's causing this? I'm picking up on someone's code and using a 3rd party analytics software called localytics. I'm trying to import their .jar file and had success when I created a dummy app with it. The problem is trying to integrate it with the current app. The previous developers had created their own implementation of the jar file that I cannot change (time sensitive).

我好奇是什么导致了这个?我正在接受某人的代码并使用名为localytics的第三方分析软件。我正在尝试导入他们的.jar文件,并在我用它创建虚拟应用程序时取得了成功。问题是尝试将其与当前的应用程序集成。以前的开发人员已经创建了自己的jar文件实现,我无法更改(时间敏感)。

Can anyone tell me why the .jar file is red in android studio?

谁能告诉我为什么.jar文件在android studio中是红色的?

2 个解决方案

#1


8  

Probably you have Version Control enabled for your current project and the Jar file is not added to the VCS.

您可能已为当前项目启用了版本控制,并且Jar文件未添加到VCS。

#2


0  

Right click on the jar file in Android studio then choose "Add as Library" will solve this problem.

右键单击Android studio中的jar文件,然后选择“Add as Library”将解决此问题。

#1


8  

Probably you have Version Control enabled for your current project and the Jar file is not added to the VCS.

您可能已为当前项目启用了版本控制,并且Jar文件未添加到VCS。

#2


0  

Right click on the jar file in Android studio then choose "Add as Library" will solve this problem.

右键单击Android studio中的jar文件,然后选择“Add as Library”将解决此问题。