1. Are you ready for the Galaxy S20? Here is everything we know so far!

How to fix error coding

Discussion in 'Android Development' started by Mohamed13, Jan 14, 2021.

  1. Mohamed13

    Mohamed13 Lurker
    Thread Starter

    Android manifest.
    Code (Text):
    1. <?xml version="1.0" encoding="utf-8"?>
    2. <manifest xmlns:android="http://schemas.android.com/apk/res/android"
    3.     package="com.example.secondapp"
    4.     android:versionCode="1"
    5.     android:versionName="1.0" >
    6.  
    7.     <uses-sdk
    8.         android:minSdkVersion="23"
    9.         android:targetSdkVersion="30" />
    10.  
    11.     <application
    12.         android:allowBackup="true"
    13.         android:appComponentFactory="androidx.core.app.CoreComponentFactory"
    14.         android:debuggable="true"
    15.         android:extractNativeLibs="false"
    16.         android:icon="@mipmap/ic_launcher"
    17.         android:label="@string/app_name"
    18.         android:roundIcon="@mipmap/ic_launcher_round"
    19.         android:supportsRtl="true"
    20.         android:testOnly="true"
    21.         android:theme="AppTheme" >
    22.         <activity android:name="com.Second app.MainActivity" >
    23.             <intent-filter>
    24.                 <action android:name="android.intent.action.MAIN" />
    25.  
    26.                 <category android:name="android.intent.category.LAUNCHER" />
    27.             </intent-filter>
    28.         </activity>
    29.     </application>
    30. </manifest>
    Code (Java):
    1. /**
    2. * Automatically generated file. DO NOT MODIFY
    3. */
    4. package "com.Second app;"
    5.  
    6. public final class BuildConfig {
    7.   public static final boolean DEBUG = Boolean.parseBoolean("true");
    8.   public static final String APPLICATION_ID = "com.example.secondapp";
    9.   public static final String BUILD_TYPE = "debug";
    10.   public static final int VERSION_CODE = 1;
    11.   public static final String VERSION_NAME = "1.0";
    12. }
     



    1. Download the Forums for Android™ app!


      Download

       
Loading...

Share This Page

Loading...