I am trying to build an android application using gradle in eclipse and i am trying to build the apk using command gradle build in project root directory,
i am getting an error in the path of
$projdir/build/intermediates/manifests/full/release/Androidmanifest.xml
saying that
/build/intermediates/manifests/full/release/AndroidManifest.xml:139:28-68: AAPT: No resource found that matches the given name (at 'theme' with value '#style/Theme.AppCompat.Light.NoActionBar').
When i open eclipse and it is redirecting me to the resource fine and it is showing no errors. And i think the Androidmanifest.xml in the above path is it necessary ??
Use AppTheme like this :-
<application
android:allowBackup="true"
android:icon="#mipmap/ic_launcher"
android:label="#string/app_name"
android:roundIcon="#mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="#style/AppTheme">
<activity
android:name=".activity.SplashActivity"
android:theme="#style/AppTheme.NoActionBar">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
Related
When create empty android project with no activity by default, and then add empty activity through android studio GUI, debug is showing error
Waiting for application to come online
Manifest file seems to be fine, what step in app setup might have been missed? When creating project with empty activity by default, there is no error
AndroidManifest.xml
<?xml version="1.0" encoding="utf-8"?>
<application
android:allowBackup="true"
android:dataExtractionRules="#xml/data_extraction_rules"
android:fullBackupContent="#xml/backup_rules"
android:icon="#mipmap/ic_launcher"
android:label="#string/app_name"
android:roundIcon="#mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="#style/Theme.MyApplication"
tools:targetApi="31">
<activity
android:name=".MainActivity"
android:exported="true">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
<meta-data
android:name="android.app.lib_name"
android:value="" />
</activity>
</application>
I tried to compare contents of two new created project, one with manually added mainActivity and another project with empty activity created by default, but it seems no diff
Try to clean project and rebuild it , then try again
I am trying to implement paypal sandbox into my application, i've followed every steps from the https://developer.paypal.com/sdk/in-app/android/ , however after importing everything and when i am trying to start my application i get the following error:
Installation did not succeed.
The application could not be installed: INSTALL_PARSE_FAILED_MANIFEST_MALFORMED
List of apks:
[0] '/Users/xxx/Desktop/Work/shop_java/app/build/outputs/apk/debug/app-debug.apk'
Installation failed due to: 'INSTALL_PARSE_FAILED_MANIFEST_MALFORMED: Failed parse during installPackageLI: /data/app/vmdl695433300.tmp/base.apk (at Binary XML file line #63): com.paypal.pyplcheckout.home.view.activities.PYPLInitiateCheckoutActivity: Targeting S+ (version 31 and above) requires that an explicit value for android:exported be defined when intent filters are present'
And i don't quite understand why it is,
my Android manifest is:
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
package="com.example.xxx">
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />
<application
android:allowBackup="true"
android:fullBackupContent="true"
android:icon="#mipmap/ic_launcher"
android:label="#string/app_name"
android:networkSecurityConfig="#xml/network_security_config"
android:roundIcon="#mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="#style/AppTheme"
android:dataExtractionRules="#xml/data_extraction_rules">
<activity android:name=".ProductActivity"/>
<activity android:name=".promotion.PromotionItemActivity"
/>
<activity
android:name=".MainActivity"
android:exported="true"
android:launchMode="singleTask"
android:hardwareAccelerated="true"
tools:node="merge">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
However it fails, i tried to rebuild, tried to clean, invalidate caches, gradle runs ok, but when i try to run it says this, any solutions?
Try to update the Library in build.gradle now the last version is 0.6.1.
implementation 'com.paypal.checkout:android-sdk:0.6.1'
INTRO
Greetings, all!
My Android Studio 4.0.1 project refused to build due to not being able to find an AndroidManifest.xml file that's in /main/ where it should be, according to the documentation. Mass replacing the occurrences of "api" with "implementation" or vice versa hasn't helped.
Thus, what other information do you want for clarification, and what should change to ensure this works?
Thankee!
MANIFEST FILE
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.hornet">
<uses-permission android:name="android.permission.INTERNET" />
<application
android:name=".MainApplication"
android:label="#string/app_name"
android:icon="#mipmap/ic_launcher"
android:roundIcon="#mipmap/ic_launcher_round"
android:allowBackup="false"
android:theme="#style/AppTheme">
<activity
android:name=".MainActivity"
android:label="#string/app_name"
android:configChanges="keyboard|keyboardHidden|orientation|screenSize|uiMode"
android:launchMode="singleTask"
android:windowSoftInputMode="adjustResize">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity android:name="com.facebook.react.devsupport.DevSettingsActivity" />
</application>
</manifest>
RUN ERRORS WITH DEBUG MODE ACTIVE
Moved to this Google Doc for being too long for this post!
https://docs.google.com/document/d/19OO-OIzFy6IXPEOAdvGZLgXNsW_1sfiZsLDs6H0Jjzs/edit?usp=sharing
Try to rebuild the project or modify project structure. It happens when something was wrong
I wanted to learn how to make android apps and downloaded android studio.
But when I made my first project and it was trying to sync an error came. This is what it said: A problem occurred configuring project ':app'.
When i went to Android Manifest most of it was red. Does someone know what to do?
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="com.example.oliver.mycart">
<application
android:allowBackup="true"
android:icon="#mipmap/ic_launcher"
android:abel="#string/app_name"
android:roundIcon="#mipmap/ic_launcher_round"
android:supportsRtl="true"
android:theme="#style/AppTheme">
<activity
android:name=".Menu"
android:label="#string/app_name"
android:theme="#style/AppTheme.NoActionBar">
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
</application>
</manifest>
android:abel="#string/app_name"
you have error in this line. Try to change abel to label
I've looked at other postings about the INSTALL_PARSE_FAILED_MANIFEST_MALFORMED but still can't figure out what's wrong with my particular manifest. Any suggestions?
<?xml version="1.0" encoding="utf-8"?>
<application
android:allowBackup="true"
android:icon="#drawable/ic_launcher"
android:label="#string/app_name"
android:theme="#style/AppTheme" >
<activity
android:name="ThePackage.SnapVest.MainActivity"
android:label="#string/app_name" >
<intent-filter>
<action android:name="android.intent.action.MAIN" />
<category android:name="android.intent.category.LAUNCHER" />
</intent-filter>
</activity>
<activity
android:name="ThePackage.SnapVest.MyActiveOptions"
android:label="#string/title_activity_my_active_options" >
</activity>
<activity
android:name="ThePackage.SnapVest.MyTrades"
android:label="#string/title_activity_my_trades" >
</activity>
<activity
android:name="ThePackage.SnapVest.MyAccount"
android:label="#string/title_activity_my_account" >
</activity>
<activity
android:name="ThePackage.SnapVest.Leaderboard"
android:label="#string/title_activity_leaderboard" >
</activity>
</application>
So, where's my error?
Here's the actual sequence when I run it:
Waiting for device.
Target device: kyocera-event-1001c1c
Uploading file
local path: C:\Users\Roger Garrett\AndroidStudioProjects\SnapVest\app\build\apk\app-debug-unaligned.apk
remote path: /data/local/tmp/ThePackage.SnapVest
Installing ThePackage.SnapVest
DEVICE SHELL COMMAND: pm install -r "/data/local/tmp/ThePackage.SnapVest"
pkg: /data/local/tmp/ThePackage.SnapVest
Failure [INSTALL_PARSE_FAILED_MANIFEST_MALFORMED]
It's all because you added company domain
(Android studio) in capital letters.
Or the Package name. Change it to small letters
and run the project. The problem will get resolved.
Change your
android:name="ThePackage.SnapVest.MainActivity"
TO
android:name=".MainActivity"
OR make all the characters in the package name lowercase except your class name
android:name="thepackage.snapvest.MainActivity"
Do change all the attributes named as android:name inside the activity tags as I suggested.
In my case the package name had a capital letter. After changing to all small letters the app got installed successfully