Friday, July 18, 2025

Launching Translation App For The First Time

1:

 $ npx react-native start

...

...

Warning: SDK processing. This version only understands SDK XML versions up to 3 but an SDK XML file of version 4 was encountered. This can happen if you use versions of Android Studio and the command-line tools that were released at different times.

/home/jain/Desktop/vaakya_sentence_translation/node_modules/react-native-device-info/android/src/main/java/com/learnium/RNDeviceInfo/RNDeviceModule.java:192: warning: [removal] onCatalystInstanceDestroy() in NativeModule has been deprecated and marked for removal

  public void onCatalystInstanceDestroy() {

              ^

Note: Some input files use or override a deprecated API.

Note: Recompile with -Xlint:deprecation for details.

1 warning

Note: Some input files use or override a deprecated API.

Note: Recompile with -Xlint:deprecation for details.

Note: Some input files use or override a deprecated API.

Note: Recompile with -Xlint:deprecation for details.

Note: Some input files use or override a deprecated API.

Note: Recompile with -Xlint:deprecation for details.

Note: Some input files use unchecked or unsafe operations.

Note: Recompile with -Xlint:unchecked for details.

Note: Some input files use or override a deprecated API.

Note: Recompile with -Xlint:deprecation for details.


FAILURE: Build failed with an exception.


* What went wrong:

Execution failed for task ':app:validateSigningDebug'.

> Keystore file '/home/jain/Desktop/vaakya_sentence_translation/android/app/debug.keystore' not found for signing config 'debug'.


2:

(base) jain@jain-ThinkPad-T440s:~/Desktop/vaakya_sentence_translation$ cd /home/jain/Desktop/vaakya_sentence_translation/android/app
(base) jain@jain-ThinkPad-T440s:~/Desktop/vaakya_sentence_translation/android/app$ keytool -genkeypair -v -keystore debug.keystore -storepass android -keypass android \
  -alias androiddebugkey -keyalg RSA -keysize 2048 -validity 10000
What is your first and last name?
  [Unknown]:  Ashish
What is the name of your organizational unit?
  [Unknown]:  survival8
What is the name of your organization?
  [Unknown]:  survival8
What is the name of your City or Locality?
  [Unknown]:  Gurugram
What is the name of your State or Province?
  [Unknown]:  Haryana
What is the two-letter country code for this unit?
  [Unknown]:  IN
Is CN=Ashish, OU=survival8, O=survival8, L=Gurugram, ST=Haryana, C=IN correct?
  [no]:  yes

Generating 2,048 bit RSA key pair and self-signed certificate (SHA256withRSA) with a validity of 10,000 days
for: CN=Ashish, OU=survival8, O=survival8, L=Gurugram, ST=Haryana, C=IN
[Storing debug.keystore]

3:

$ npx react-native start

> Task :app:packageDebug
> Task :app:createDebugApkListingFileRedirect
> Task :app:installDebug FAILED

Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

For more on this, please refer to https://docs.gradle.org/8.6/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.
146 actionable tasks: 11 executed, 135 up-to-date

info 💡 Tip: Make sure that you have set up your development environment correctly, by running npx react-native doctor. To read more about doctor command visit: https://github.com/react-native-community/cli/blob/main/packages/cli-doctor/README.md#doctor 


FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':app:installDebug'.
> com.android.builder.testing.api.DeviceException: No connected devices!


4:

Tried Samsung Galaxy A06 5G -- I wasn't able to connect
Then tried my older phone Redmi A2 successfully:

(base) jain@jain-ThinkPad-T440s:~/Desktop/vaakya_sentence_translation$ adb devices
List of devices attached
FEYPDERWUS4XSKFI device

5:

Mission Successful on older device :D


6:

On new Samsung A06 5g:
(base) jain@jain-ThinkPad-T440s:~/Desktop/vaakya_sentence_translation$ adb pair 192.168.1.6:41327
Enter pairing code: 558111
Successfully paired to 192.168.1.6:41327 [guid=adb-R9ZY3098GYX-8MEOzx]
(base) jain@jain-ThinkPad-T440s:~/Desktop/vaakya_sentence_translation$ adb connect 192.168.1.6:41327
failed to connect to '192.168.1.6:41327': Connection refused
(base) jain@jain-ThinkPad-T440s:~/Desktop/vaakya_sentence_translation$ adb devices
List of devices attached
adb-R9ZY3098GYX-8MEOzx._adb-tls-connect._tcp device

No comments:

Post a Comment