org.jetbrains? What is it?
Asked Answered
N

2

19

I recently cloned the ics-openvpn project: https://code.google.com/p/ics-openvpn/source/checkout

But when I opened the project, it gave me some errors considering these lines not being resolved:

import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;

I tried searching it on the internet, but I got no clear answer. So my question is: What is 'jetbrains'? How do I resolve this?

Thanks

Niles answered 14/11, 2013 at 10:17 Comment(1)
www.jetbrains.com for one :) as far as the library goes, I cannot give an answer. Guessing it's related to the projected being built with intelliJ (ics = Ice Cream Sandwich?) Don't consider this as an answer - I'm just providing my thoughts.Toddtoddie
L
21

@Nullable and @NotNull annotations introduced in IntelliJ IDEA for catching NullPointerException's (NPE's) through the Constant Conditions & Exceptions and @Nullable problem inspections.

The org.jetbrains.annotations project is open-source, hosted at GitHub. A few other annotations are included: @Nls & @NonNls for localization, @PropertyKey for resource bundles, and @TestOnly for testing.

To download the library of annotations, see the GitHub page.

Maven:

<dependency>
    <groupId>org.jetbrains</groupId>
    <artifactId>annotations</artifactId>
    <version>16.0.2</version>
</dependency>
Leyva answered 14/11, 2013 at 10:25 Comment(0)
S
2

To solve this issue

Android The import org.jetbrains cannot be resolved

Download the last version of annotations jar http://repo1.maven.org/maven2/com/intellij/annotations/12.0/annotations-12.0.jar

and paste into /libs folder of your project: enter image description here

Simard answered 25/11, 2014 at 18:48 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.