<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Kaif Imran Shariff</title>
    <description>The latest articles on DEV Community by Kaif Imran Shariff (@kaif-shariff).</description>
    <link>https://dev.to/kaif-shariff</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F1515662%2Fa81d0c1c-af67-438a-91b1-ccf141ca86f5.gif</url>
      <title>DEV Community: Kaif Imran Shariff</title>
      <link>https://dev.to/kaif-shariff</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/kaif-shariff"/>
    <language>en</language>
    <item>
      <title>CMake '\d' escape sequence error during react-native cli setup on windows</title>
      <dc:creator>Kaif Imran Shariff</dc:creator>
      <pubDate>Wed, 20 Nov 2024 12:29:51 +0000</pubDate>
      <link>https://dev.to/kaif-shariff/cmake-d-escape-sequence-error-during-react-native-cli-setup-on-windows-4bac</link>
      <guid>https://dev.to/kaif-shariff/cmake-d-escape-sequence-error-during-react-native-cli-setup-on-windows-4bac</guid>
      <description>&lt;p&gt;So, I choose to use &lt;code&gt;react-native cli&lt;/code&gt; over &lt;code&gt;Expo&lt;/code&gt; to make my app. As I was setting up, the biggest issue I encountered was the &lt;code&gt;CMake&lt;/code&gt; error and I was lost, but here are the sequence of solutions that I tried which resolved my problem!&lt;/p&gt;

&lt;h2&gt;
  
  
  Solutions I Tried
&lt;/h2&gt;

&lt;p&gt;&lt;strong&gt;Install and Set Up Android Studio&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Open Android Studio and go to SDK Manager.&lt;/li&gt;
&lt;li&gt;Download the latest Android API, SDK Build-Tools, and NDK. &amp;gt; Update environment variables to include paths to Command-Line Tools and Platform Tools.&lt;/li&gt;
&lt;/ul&gt;

&lt;blockquote&gt;
&lt;p&gt;Ensure that the environment variables are updated to include the latest paths for Command-Line Tools and Platform Tools.&lt;/p&gt;
&lt;/blockquote&gt;

&lt;p&gt;&lt;strong&gt;Simplify Java Environment Variables&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Ensure only one version of Java (e.g., Java 17 OpenJDK) is set in environment variables.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;Locate and Edit CMakeLists.txt&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;Locate &lt;code&gt;CMakeLists.txt&lt;/code&gt; at:
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;D:\&amp;lt;Project-Name&amp;gt;\node_modules\react-native\ReactAndroid\cmake-utils\default-app-setup\
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;Update its content to:
&lt;/li&gt;
&lt;/ul&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;cmake_minimum_required(VERSION 3.13)

# Define the library name here.
project(appmodules)

# Check if the host system is Windows
if(CMAKE_HOST_WIN32)
  # Replace backslashes in paths to forward slashes
  string(REPLACE "\\" "/" REACT_ANDROID_DIR ${REACT_ANDROID_DIR})
endif()

# Include the ReactNative-application.cmake file
include(${REACT_ANDROID_DIR}/cmake-utils/ReactNative-application.cmake)
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



</description>
      <category>reactnative</category>
      <category>android</category>
    </item>
    <item>
      <title>ext.kotlin_version = &lt;'latest version'&gt; error on Flutter (2024)</title>
      <dc:creator>Kaif Imran Shariff</dc:creator>
      <pubDate>Tue, 28 May 2024 17:33:31 +0000</pubDate>
      <link>https://dev.to/kaif-shariff/extkotlinversion-latest-version-error-on-flutter-2024-20m7</link>
      <guid>https://dev.to/kaif-shariff/extkotlinversion-latest-version-error-on-flutter-2024-20m7</guid>
      <description>&lt;p&gt;Solution:&lt;br&gt;
the solution &lt;em&gt;(that worked for me)&lt;/em&gt; for this is go to &lt;code&gt;android&lt;/code&gt; &amp;gt; &lt;code&gt;settings.gradle&lt;/code&gt; inside &lt;code&gt;plugins&lt;/code&gt; brackets search for the line &lt;code&gt;id "org.jetbrains.kotlin.android" version "xxxx" apply false&lt;/code&gt; replace 'xxxx' with &lt;a href="https://kotlinlang.org/docs/releases.html#release-details"&gt;latest kotlin version&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;&lt;em&gt;i would recommend not to pick the top most version of kotlin as it might not be compatible with flutter, yet!&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;Elaboration:&lt;br&gt;
the terminal prompts to go to &lt;code&gt;build.gradle&lt;/code&gt; and do this -&amp;gt; &lt;br&gt;
&lt;code&gt;buildscript {&lt;br&gt;
    ext.kotlin_version = '1.5.0' //use latest&lt;br&gt;
    ...&lt;br&gt;
}&lt;/code&gt;&lt;br&gt;
but apparently this won't work. in fact for me I didn't find &lt;code&gt;buildscript{}&lt;/code&gt; section in my &lt;code&gt;build.gradle&lt;/code&gt;&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
