Required plugin com.intellij.modules.androidstudio to be installed - kotlin

I want to set up Kotlin Multiplatform Mobile on Intellij IDEA
I downloaded the Kotlin Multiplatform Mobile plugin and installed it but got a warning Require plugin 'com.intelliji.modules.androidstudio' to be installed
How can I resolved it
I install KMM plugin because I can't see any options for create KMM project on IDEA

Related

Configure Project : react-native-reanimated

Configure project :react-native-reanimated
Native libs debug enabled: true
Android gradle plugin: 7.0.4
Gradle: 7.3.3
building Reanimated2
Upgrade your react-native-reanimated to v2.9.1 to fix the problem.
Then
cd android
./gradlew clean
You can check more details and answers from here
Configure project :react-native-reanimated
Native libs debug enabled: false
Android gradle plugin: 7.0.4
Gradle: 7.3.3
building Reanimated2
[CXX1101] NDK at /Users/iasonasxrist/Library/Android/sdk/ndk/21.4.7075529 did not have a source.properties file
This version only understands SDK XML versions up to 2 but an SDK XML file of version 3 was encountered. This can happen if you use versions of Android Studio and the command-line tools that were released at different times.

Kotlin Multiplatform Mobile library structure

Some time ago I've created a KMM library from IntelliJ IDEA, using the "Mobile Application" project template. The structure was (with one root build.gradle.kts file):
libraryProject
- build.gradle.kts
- src
- androidMain
- commonMain
- iosMain
Now, that template is missing from the list. There is just a "Library", which creates a jvm/js/common/native structure.
In Android Studio, the KMM plugin generates (for KMM library template):
libraryProject
- build.gradle.kts
- settings.gradle.kts
- libraryShared (this can be renamed)
- build.gradle.kts
- src
- androidMain
- commonMain
- iosMain
This is just a KMM application without the actual iOS and Android platform modules.
And, it comes with two build.gradle.kts files (root and shared).
I'm just curious if I missed anything or do I have to configure it manually, somehow.
All IDEs and plugins are up-to-date.
When creating new project in Android Studio, one should be able to choose between two KMM projects(KMM Plugin is required to be installed):
KMM Library which contains only the shared module defined, and is intended to be used when one wants to add this library into existing iOS and Android apps.
KMM Application which creates a complete project with shared multiplatforn library, iOS app with ready integration, and the Android app.
Probably, in this case these two were confused. If you had only one option in the Wizard, please let me know which IDE and Plugin versions were used.Note: Mobile library and Mobile Application were removed from IDEA by design,please see https://youtrack.jetbrains.com/issue/KTIJ-19232.

No variants found for `react-native-reanimated`

I upgraded my React Native project to Gradle 7.0.2 and now when I open Android Studio it says No variants found for ':react-native-reanimated'. I'm using react-native-reanimated#1.13.3, and from the documentation for versions 1.x.x there's no real configuration, so I'm not sure how to approach this.
Has anyone run into anything similar? I'm using react-native#0.63.4, gradle 7.0.2, and Android Gradle Plugin 7.0.0.
You need to downgrade your Gradle version 7 to 6 because somehow Gradle 7 not work with react-native-reanimated 1.13.3. You can downgrade the version from gradle-wrapper.properties file like below:
distributionUrl=https\://services.gradle.org/distributions/gradle-6.8.1-all.zip

Ionic Capacitor Barcode Scanner

I'm building android app using ionic4 and capacitor. I intent to use phonegap-plugin-barcodescanner in my app. But after installing that plugins, I began to fail building my apk. The hint I get from my Android Studio IDE is, that my app gradle using 'com.android.support:appcompat-v7:28.0.0', and the cordova gradle using "com.android.support:support-v4:27.+". I've tried to edit the cordova gradle to v4:28.0.0 (In Android Studio IDE), but still not working. What should I do?
My stack is:
node.js 6.4.1
ionic 4.12.0
angular 7.3.9
capacitor 1.0
and plugins phonegap-plugin-barcodescanner ^8.1.0
Could you show us the build.gradle files entirely?
I installed the plug-in on my project with Capacitor, and there was no problem.
Remove the plug-in, and do these steps :
npm install phonegap-plugin-barcodescanner
npm install #ionic-native/barcode-scanner
ionic cap sync
from https://ionicframework.com/docs/native/barcode-scanner
I was dealing with issues using android and not androidX, so I did then :
Refactor --> Migrate to AndroidX --> No Backup --> Do Refactor
Then do Build --> Rebuild Project
This worked for me

Importing a library to into Intellij Idea platform sdk

I am developing a plugin using Intellij Idea using platform SDK! I want to import the JavaParser library available at
https://github.com/javaparser/javaparser
so that I can parse java source code. The importing can be done using gradle and maven but I dont know how to use it for the Intellij Idea platform SDK. How can I import the library into my project?