Skip to content

compileDebugKotlin FAILED  #46

@Myzel394

Description

@Myzel394

Just setup a new React Native project using expo (expo init ., template: "minimal") and ejected it (expo eject). Installed react-native-tor and tried to run yarn android but got these errors:

> Task :react-native-tor:compileDebugKotlin FAILED
e: /home/myzel394/VSCodeProjects/react-native-map/node_modules/react-native-tor/android/src/main/java/com/reactnativetor/TorBridgeRequest.kt: (7, 26): Unresolved reference: Companion
e: /home/myzel394/VSCodeProjects/react-native-map/node_modules/react-native-tor/android/src/main/java/com/reactnativetor/TorBridgeRequest.kt: (8, 28): Unresolved reference: Companion
e: /home/myzel394/VSCodeProjects/react-native-map/node_modules/react-native-tor/android/src/main/java/com/reactnativetor/TorBridgeRequest.kt: (60, 26): Unresolved reference: toRequestBody
e: /home/myzel394/VSCodeProjects/react-native-map/node_modules/react-native-tor/android/src/main/java/com/reactnativetor/TorBridgeRequest.kt: (60, 91): Unresolved reference: toMediaType
e: /home/myzel394/VSCodeProjects/react-native-map/node_modules/react-native-tor/android/src/main/java/com/reactnativetor/TorBridgeRequest.kt: (61, 32): Unresolved reference: toRequestBody
e: /home/myzel394/VSCodeProjects/react-native-map/node_modules/react-native-tor/android/src/main/java/com/reactnativetor/TorBridgeRequest.kt: (61, 80): Unresolved reference: toMediaType
e: /home/myzel394/VSCodeProjects/react-native-map/node_modules/react-native-tor/android/src/main/java/com/reactnativetor/TorBridgeRequest.kt: (82, 16): Cannot access 'headers': it is public/*package*/ in 'Response'
e: /home/myzel394/VSCodeProjects/react-native-map/node_modules/react-native-tor/android/src/main/java/com/reactnativetor/TorBridgeRequest.kt: (87, 31): Cannot access 'code': it is public/*package*/ in 'Response'
e: /home/myzel394/VSCodeProjects/react-native-map/node_modules/react-native-tor/android/src/main/java/com/reactnativetor/TorBridgeRequest.kt: (91, 27): Cannot access 'body': it is public/*package*/ in 'Response'
e: /home/myzel394/VSCodeProjects/react-native-map/node_modules/react-native-tor/android/src/main/java/com/reactnativetor/TorBridgeRequest.kt: (102, 20): Cannot access 'code': it is public/*package*/ in 'Response'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions