How to solve this [deprecation] resolveActivity(Intent,int) in PackageManager has been deprecated (intent, PackageManager.MATCH_DEFAULT_ONLY) != null; - package

**I have the following below error occurring **
C:\FlutterDev\flutter.pub-cache\hosted\pub.dartlang.org\android_intent-2.0.2\android\src\main\java\io\flutter\plugins\androidintent\IntentSender.java:87: warning: [deprecation] resolveActivity(Intent,int) in PackageManager has been deprecated
return packageManager.resolveActivity(intent, PackageManager.MATCH_DEFAULT_ONLY) != null;
^
error: warnings found and -Werror specified
1 error
1 warning
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':android_intent:compileDebugJavaWithJavac'.
Compilation failed; see the compiler error output for details.
Try:
Run with --stacktrace option to get the stack trace.
Run with --info or --debug option to get more log output.
Run with --scan to get full insights.
Get more help at https://help.gradle.org
If any knows about this error please guide

Related

"package or namespace load failed" error in loading R package "litteR"

i am getting the following error whenever i try to load the package "litteR". I have updated all my packages and dont have this problem with any other ones
library(litteR)
xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun
Error: package or namespace load failed for ‘litteR’:
.onLoad failed in loadNamespace() for 'tcltk', details:
call: dyn.load(file, DLLpath = DLLpath, ...)
error: unable to load shared object '/Library/Frameworks/R.framework/Versions/4.1-arm64/Resources/library/tcltk/libs/tcltk.so':
dlopen(/Library/Frameworks/R.framework/Versions/4.1-arm64/Resources/library/tcltk/libs/tcltk.so, 0x000A): Library not loaded: /opt/X11/lib/libX11.6.dylib
Referenced from: /Library/Frameworks/R.framework/Versions/4.1-arm64/Resources/library/tcltk/libs/tcltk.so
Reason: tried: '/opt/X11/lib/libX11.6.dylib' (no such file), '/usr/lib/libX11.6.dylib' (no such file)
In addition: Warning message:
In system2("/usr/bin/otool", c("-L", shQuote(DSO)), stdout = TRUE) :
running command ''/usr/bin/otool' -L '/Library/Frameworks/R.framework/Resources/library/tcltk/libs//tcltk.so'' had status 1
im not sure why this is happening, i have a macbook pro, not sure if this makes a difference
You need to install the commando line tools. Open the Terminal.app and run the following line xcode-select --install

I get an error when trying to bundle install

gem install mysql2 -v '0.3.21' --source 'https://rubygems.org/'
Building native extensions. This could take a while...
ERROR: Error installing mysql2:
ERROR: Failed to build gem native extension.
current directory: /home/tatarski/.rvm/gems/ruby-2.3.8/gems/mysql2-0.3.21/ext/mysql2
/usr/share/rvm/rubies/ruby-2.3.8/bin/ruby -I /usr/share/rvm/rubies/ruby-2.3.8/lib/ruby/site_ruby/2.3.0 -r ./siteconf20210223-17291-11rjqor.rb extconf.rb
checking for ruby/thread.h... yes
checking for rb_thread_call_without_gvl() in ruby/thread.h... yes
checking for rb_thread_blocking_region()... no
checking for rb_wait_for_single_fd()... yes
checking for rb_hash_dup()... yes
checking for rb_intern3()... yes
-----
Using mysql_config at /usr/bin/mysql_config
-----
checking for mysql.h... yes
checking for errmsg.h... yes
checking for mysqld_error.h... yes
-----
Setting libpath to /usr/lib/x86_64-linux-gnu
-----
creating Makefile
current directory: /home/tatarski/.rvm/gems/ruby-2.3.8/gems/mysql2-0.3.21/ext/mysql2
make "DESTDIR=" clean
current directory: /home/tatarski/.rvm/gems/ruby-2.3.8/gems/mysql2-0.3.21/ext/mysql2
make "DESTDIR="
compiling client.c
client.c: In function 'nogvl_read_query_result':
client.c:439:3: error: unknown type name 'my_bool'
my_bool res = mysql_read_query_result(client);
^
client.c: In function '_mysql_client_options':
client.c:762:3: error: unknown type name 'my_bool'
my_bool boolval;
^
client.c:797:10: error: 'MYSQL_SECURE_AUTH' undeclared (first use in this function)
case MYSQL_SECURE_AUTH:
^
client.c:797:10: note: each undeclared identifier is reported only once for each function it appears in
client.c: In function 'set_secure_auth':
client.c:1185:38: error: 'MYSQL_SECURE_AUTH' undeclared (first use in this function)
return _mysql_client_options(self, MYSQL_SECURE_AUTH, value);
^
client.c:1186:1: warning: control reaches end of non-void function [-Wreturn-type]
}
^
make: *** [Makefile:239: client.o] Error 1
make failed, exit code 2
This is the whole error I get.
Does anyone know how to fix this.
The previous threads are old/ the solutions for them didn't work.
I tried:
sudo apt-get install ruby-mysql
and got:
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package ruby-mysql
https://github.com/brianmario/mysql2
as mentioned here you need to install a few Linx packages first before installing the gem

My Build Failed Due To /usr/lib/jvm/java-6-sun-1.6.0.24/jre/lib does not exist

I am trying to run ant build-all, but when I do this it says it cannot find
/usr/lib/jvm/java-6-sun-1.6.0.24/jre/lib does not exist.
I started by executing the build:
cd /home/localhost/trunk
ant build-all
then this was the final result / error:
The following error occurred while executing this line:
/var/www/html/trunk/kavalok-build/build-all.xml:331: /usr/lib/jvm/java-6-sun-1.6.0.24/jre/lib does not exist.
How do I enable/install java-6-sun-1.6.0.24?
FULL ERROR:
BUILD FAILED
/var/www/html/trunk/build.xml:82: The following error occurred while executing this line:
/var/www/html/trunk/build-base.xml:81: The following error occurred while executing this line:
/var/www/html/trunk/kavalok-build/build-all.xml:93: The following error occurred while executing this line:
/var/www/html/trunk/kavalok-build/build-all.xml:331: /usr/lib/jvm/java-6-sun-1.6.0.24/jre/lib does not exist.

Cant start react-native at android via react-native run-android

BUILD FAILED in 3s
Cant run react-native run-android
i connect fierbase in this project
error Failed to install the app. Make sure you have the Android development environment set up: https://facebook.github.io/react-native/docs/getting-started.html#android-development-environment. Run CLI with --verbose flag for more details.Error: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081
FAILURE: Build failed with an exception.
* Where:
Script 'E:\react\fb (2)\fb\node_modules\#react-native-community\cli-platform-android\native_modules.gradle' line: 191
* What went wrong:
A problem occurred evaluating settings 'fb'.
> Unable to determine the current character, it is not a string, number, array, or object
The current character read is 'E' with an int value of 69
Unable to determine the current character, it is not a string, number, array, or object
line number 1
index number 0
Error: Unexpected close tagLine: 31Column: 11Char: > at error (E:\react\fb (2)\fb\node_modules\sax\lib\sax.js:651:10) at strictFail (E:\react\fb (2)\fb\node_modules\sax\lib\sax.js:677:7) at closeTag (E:\react\fb (2)\fb\node_modules\sax\lib\sax.js:871:9) at SAXParser.write (E:\react\fb (2)\fb\node_modules\sax\lib\sax.js:1436:13) at new XmlDocument (E:\react\fb (2)\fb\node_modules\xmldoc\lib\xmldoc.js:261:15) at readManifest (E:\react\fb (2)\fb\node_modules\#react-native-community\cli-platform-android\build\config\readManifest.js:38:10) at Object.projectConfig (E:\react\fb (2)\fb\node_modules\#react-native-community\cli-platform-android\build\config\index.js:59:46) at Object.get project [as project] (E:\react\fb (2)\fb\node_modules\react-native\node_modules\#react-native-community\cli\build\tools\config\index.js:134:65) at E:\react\fb (2)\fb\node_modules\react-native\node_modules\#react-native-community\cli\build\commands\config\config.js:8:452 at Array.forEach (<anonymous>)
^
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.

React Native - Failed to execute aapt

I have just configured React Native FCM, when I try to start the packager:
npm install && gradlew clean
I get the following error:
enter code here
E:\projects\deets-mobile-sp\android\app\build\intermediates\res\merged\debug\values-zh-rCN\values-zh-rCN.xml:73: AAPT: warning: string 'instabug_str_empty' marked untranslatable but exists in locale 'zh-CN'
E:\projects\deets-mobile-sp\android\app\build\intermediates\res\merged\debug\values-zh-rCN\values-zh-rCN.xml:87: AAPT: warning: string 'instabug_str_plus' marked untranslatable but exists in locale 'zh-CN'
E:\projects\deets-mobile-sp\android\app\build\intermediates\res\merged\debug\values-zh-rCN\values-zh-rCN.xml:88: AAPT: warning: string 'instabug_str_powered_by_instabug' marked untranslatable but exists in locale 'zh-CN'
E:\projects\deets-mobile-sp\android\app\build\intermediates\manifests\full\debug\AndroidManifest.xml:120:31-47: AAPT: No resource found that matches the given name (at 'resource' with value '#mipmap/ic_notif').
E:\projects\deets-mobile-sp\android\app\build\intermediates\res\merged\debug\values-zh-rCN\values-zh-rCN.xml:73: warning: string 'instabug_str_empty' marked untranslatable but exists in locale 'zh-CN'
E:\projects\deets-mobile-sp\android\app\build\intermediates\res\merged\debug\values-zh-rCN\values-zh-rCN.xml:87: warning: string 'instabug_str_plus' marked untranslatable but exists in locale 'zh-CN'
E:\projects\deets-mobile-sp\android\app\build\intermediates\res\merged\debug\values-zh-rCN\values-zh-rCN.xml:88: warning: string 'instabug_str_powered_by_instabug' marked untranslatable but exists in locale 'zh-CN'
warning: string 'instabug_str_record_audio' has no default translation.
E:\projects\deets-mobile-sp\android\app\build\intermediates\manifests\full\debug\AndroidManifest.xml:118: error: Error: No resource found that matches the given name (at 'resource' with value '#mipmap/ic_notif').
:app:processDebugResources FAILED
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':app:processDebugResources'.
> com.android.ide.common.process.ProcessException: Failed to execute aapt
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 4 mins 17.331 secs
Could not install the app on the device, read the error above for details.
Make sure you have an Android emulator running or a device connected and have
set up your Android development environment:
https://facebook.github.io/react-native/docs/getting-started.html
As I can see it is trying to find the resource with name ic_notif
Error: No resource found that matches the given name (at 'resource' with value '#mipmap/ic_notif').
Try the following fix.
Go to all of four android/app/src/main/res/mipmap-(hdpi/mdpi/xhdpi/xxhdpi),
Make a copy of ic_launcher and rename it to ic_notif.
Or you can get these png image files from example project
Hope this helps you.

Resources