cant compile apk using Game Maker Studio - android

I just updated the build tools using android SDK manager.
Now I cant compile apk using game maker studio.
Here is the error output from the console.
I dont think i have changed anything except windows update. I have windows 10, 64 bit
Stats : GMA : Elapsed=6821.0873
Stats : GMA : sp=32,au=0,bk=3,pt=0,sc=11,sh=0,fo=4,tl=0,ob=41,ro=3,da=0,ex=1,ma=29,fm=0x49E50A39
cmd /c ""C:\Users\pc\AppData\Roaming\GameMaker-Studio\Android\runner\gradle\gradlew"" build -x assembleDebug
:com.mysite.myapp:preBuild UP-TO-DATE
:com.mysite.myapp:preReleaseBuild UP-TO-DATE
:com.mysite.myapp:checkReleaseManifest
:com.mysite.myapp:preDebugBuild UP-TO-DATE
:com.mysite.myapp:prepareComAndroidSupportMultidex101Library
:com.mysite.myapp:prepareComAndroidSupportSupportV42311Library
:com.mysite.myapp:prepareReleaseDependencies
:com.mysite.myapp:compileReleaseAidl
:com.mysite.myapp:compileReleaseRenderscript
:com.mysite.myapp:generateReleaseBuildConfig
:com.mysite.myapp:generateReleaseAssets UP-TO-DATE
:com.mysite.myapp:mergeReleaseAssets
:com.mysite.myapp:generateReleaseResValues
:com.mysite.myapp:generateReleaseResources
:com.mysite.myapp:mergeReleaseResources
:com.mysite.myapp:processArmeabi-v7aReleaseManifest
Warning: C:\Users\pc\Documents\GameMaker\Cache\MobiPC_App\Android\Default\com.mysite.myapp\src\main\AndroidManifest.xml:28:3-182:17 Warning:
application#android:label was tagged at AndroidManifest.xml:28 to replace other declarations but no other declaration present
Warning: C:\Users\pc\Documents\GameMaker\Cache\MobiPC_App\Android\Default\com.mysite.myapp\src\main\AndroidManifest.xml:29:5-35:16 Warning:
activity#com.mysite.myapp.RunnerActivity#android:label was tagged at AndroidManifest.xml:29 to replace other declarations but no other declaration present
C:\Users\pc\Documents\GameMaker\Cache\MobiPC_App\Android\Default\com.mysite.myapp\src\main\AndroidManifest.xml:28:3-182:17 Warning:
application#android:label was tagged at AndroidManifest.xml:28 to replace other declarations but no other declaration present
C:\Users\pc\Documents\GameMaker\Cache\MobiPC_App\Android\Default\com.mysite.myapp\src\main\AndroidManifest.xml:29:5-35:16 Warning:
activity#com.mysite.myapp.RunnerActivity#android:label was tagged at AndroidManifest.xml:29 to replace other declarations but no other declaration present
:com.mysite.myapp:processArmeabi-v7aReleaseResourcesC:\Users\pc\Documents\GameMaker\Cache\MobiPC_App\Android\Default\com.mysite.myapp\build\intermediates\manifests\full\armeabi-v7a\release\AndroidManifest.xml:78:28-65 : No resource found that matches the given name (at 'value' with value '#integer/google_play_services_version').
FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':com.mysite.myapp:processArmeabi-v7aReleaseResources'.
> com.android.ide.common.process.ProcessException: org.gradle.process.internal.ExecException: Process 'command 'F:\Android\android-sdk\build-tools\23.0.1\aapt.exe'' finished with non-zero exit value 1
* 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: 12.612 secs
Create finished: 01:33:39

I set the buils tools version to the latest version.
In preferences I set the cache path to a shorter one
I also uninstalled an extension called "APPODEAL", i think this was causing problems too.
Now I managed to get apk compiled

Related

Execution failed for task ':react-native-zoom-us:compileDebugJavaWithJavac'

Please anyone have the solution? then please share . When I used the.
react-native-zoom-us": "^5.0.0
the the Sdk was intialized but on Join meeting it was not working and App crashes So I tried to use the Latest version now its not working.
Currently Using
"react": "18.1.0",
"react-native": "0.70.0",
"react-native-zoom-us": "^6.16.4",
android/build.gradle
minSdkVersion = 23
compileSdkVersion = 32
targetSdkVersion = 31
I followed these steps.
Install npm lib Run npm install react-native-zoom-us
[Android only] Get Meeting SDK with *.aar files
The following manual steps are needed because ZoomUs SDK does not expose *.aar files directly.
Register on ZoomUs (https://zoom.us/signup#/signup)
Go to https://marketplace.zoom.us/develop/create
Click on Create placed on Meeting SDK card, choose App Name and click on Continue
Fill in Company Name, Name and Email address and click on Continue
On Download step choose Android then v5.13.1.11014 and click on download icon
Uzip the content of downloaded zoom-sdk-android-5.13.1.11014.zip
Copy two *.aar files to the node_modules/react-native-zoom-us folder of your project:
cp ~/Downloads/zoom-sdk-android-5.13.1.11014/mobilertc-android-studio/commonlib/commonlib.aar node_modules/react-native-zoom-us/android/commonlib
cp ~/Downloads/zoom-sdk-android-5.13.1.11014/mobilertc-android-studio/mobilertc/mobilertc.aar node_modules/react-native-zoom-us/android/mobilertc
This is the link same Question on Github
Errors
Task :react-native-zoom-us:compileDebugJavaWithJavac FAILED
Task :app:processDebugResources FAILED
Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
See https://docs.gradle.org/7.3.3/userguide/command_line_interface.html#sec:command_line_warnings
176 actionable tasks: 7 executed, 169 up-to-date
/Volumes/ReporteqProjects/MobileApp/node_modules/react-native-zoom-us/android/src/main/java/ch/milosz/reactnative/RNZoomUsActivity.java:4: warning: [deprecation] MeetingActivity in us.zoom.sdk has been deprecated
import us.zoom.sdk.MeetingActivity;
^
/Volumes/ReporteqProjects/MobileApp/node_modules/react-native-zoom-us/android/src/main/java/ch/milosz/reactnative/RNZoomUsModule.java:76: error: RNZoomUsModule is not abstract and does not override abstract method onLocalRecordingPrivilegeRequested(IRequestLocalRecordingPrivilegeHandler) in InMeetingServiceListener
public class RNZoomUsModule extends ReactContextBaseJavaModule implements ZoomSDKInitializeListener, InMeetingServiceListener, MeetingServiceListener, InMeetingShareController.InMeetingShareListener, LifecycleEventListener {
^
/Volumes/ReporteqProjects/MobileApp/node_modules/react-native-zoom-us/android/src/main/java/ch/milosz/reactnative/RNZoomUsModule.java:1122: warning: [deprecation] onShareActiveUser(long) in InMeetingShareListener has been deprecated
public void onShareActiveUser(long userId) {
^
/Volumes/ReporteqProjects/MobileApp/node_modules/react-native-zoom-us/android/src/main/java/ch/milosz/reactnative/RNZoomUsModule.java:209: warning: [deprecation] Integer(int) in Integer has been deprecated
videoViews.add(new Integer(tagId));
^
/Volumes/ReporteqProjects/MobileApp/node_modules/react-native-zoom-us/android/src/main/java/ch/milosz/reactnative/RNZoomUsModule.java:219: warning: [deprecation] Integer(int) in Integer has been deprecated
videoViews.remove(new Integer(tagId));
^
/Volumes/ReporteqProjects/MobileApp/node_modules/react-native-zoom-us/android/src/main/java/ch/milosz/reactnative/RNZoomUsVideoView.java:61: warning: [deprecation] Long(long) in Long has been deprecated
users.remove(new Long(inMeetingService.getMyUserID()));
^
/Volumes/ReporteqProjects/MobileApp/node_modules/react-native-zoom-us/android/src/main/java/ch/milosz/reactnative/RNZoomUsActivity.java:6: warning: [deprecation] MeetingActivity in us.zoom.sdk has been deprecated
public class RNZoomUsActivity extends MeetingActivity {
^
1 error
6 warnings
FAILURE: Build completed with 2 failures.
1: Task failed with an exception.
What went wrong:
Execution failed for task ':react-native-zoom-us: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.
==============================================================================
2: Task failed with an exception.
What went wrong:
Execution failed for task ':app:processDebugResources'.
A failure occurred while executing com.android.build.gradle.internal.res.LinkApplicationAndroidResourcesTask$TaskAction
Android resource linking failed
ERROR:/Users/shafqatbari/.gradle/caches/transforms-3/e9b9775f38bad343aa040e35c99099c7/transformed/jetified-mobilertc/res/layout/activity_media_player.xml:7: AAPT: error: attribute controller_layout_id (aka com.salushealth:controller_layout_id) not found.`[![Pic of Error][1]][1]
I used the newest version 6.16.5. Now its working.
When I reported the issue they responded to that and updated to new version and shared the details with me Thanks to
"react-native-zoom-us" team
This is the answer
GitHub Link

FAILURE: Build failed with an exception. - Android

AGPBI: {"kind":"error","text":"Android resource linking failed","sources":[{}],"original":"ERROR:: AAPT: D:\android-basics-kotlin-cupcake-app-starter\app\build\intermediates\processed_res\debug\out\resources-debug.ap_: error: The system cannot find the file specified. (2).\nerror: failed to create archive.\n\n ","tool":"AAPT"}
Task :app:mergeDebugNativeLibs
Task :app:mergeExtDexDebug
FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':app:processDebugResources'.
A failure occurred while executing com.android.build.gradle.internal.res.LinkApplicationAndroidResourcesTask$TaskAction
Android resource linking failed
ERROR:: AAPT: D:\android-basics-kotlin-cupcake-app-starter\app\build\intermediates\processed_res\debug\out\resources-debug.ap_: error: The system cannot find the file specified. (2).
error: failed to create archive.
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
Deprecated Gradle features were used in this build, making it incompatible with Gradle 7.0.
Use '--warning-mode all' to show the individual deprecation warnings.
See https://docs.gradle.org/6.7.1/userguide/command_line_interface.html#sec:command_line_warnings
BUILD FAILED in 7s
27 actionable tasks: 26 executed, 1 up-to-date
Can anyone help me to solve this problem...? please...
This is what happens when aapt fails to create an archive.
First make sure you are using the latest IDE and SDK. aapt for packaging is obsolete, and the earlier aapt2 has many bugs.
If they are up to date, try to check if the following processes on your computer have read/write access to the project directory.
[your android sdk path]\build-tools[your sdk version]\aapt.exe
[your android sdk path]\build-tools[your sdk version]\aapt2.exe
[your android studio path]\bin\studio64.exe
[your android studio path]\bin\fsnotifier64.exe
[your android studio path]\jre\bin\java.exe
[your android studio path]\jre\bin\javaw.exe
If you haven't set permissions manually, they are usually blocked by security software.
I recently ran into this problem and spent a lot of time finally found out that the security software on my workstation was not adding aapt2 and aapt to the allowed list for the project repository.

Flutter Build Issue

When I try to open the application made with Flutter on the test device, I get the following error. I tried many methods but could not get a successful result. What do you think is the error and how can I resolve it?
/C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/provider-2.0.1+1/lib/src/provider.dart:179:19: Error: The method 'inheritFromWidgetOfExactType' isn't defined for the class 'BuildContext'.
- 'BuildContext' is from 'package:flutter/src/widgets/framework.dart' ('/C:/src/flutter/packages/flutter/lib/src/widgets/framework.dart').
Try correcting the name to the name of an existing method, or defining a method named 'inheritFromWidgetOfExactType'.
? context.inheritFromWidgetOfExactType(type) as _Provider<T>
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
/C:/src/flutter/.pub-cache/hosted/pub.dartlang.org/provider-2.0.1+1/lib/src/provider.dart:180:19: Error: The method 'ancestorInheritedElementForWidgetOfExactType' isn't defined for the class 'BuildContext'.
- 'BuildContext' is from 'package:flutter/src/widgets/framework.dart' ('/C:/src/flutter/packages/flutter/lib/src/widgets/framework.dart').
Try correcting the name to the name of an existing method, or defining a method named 'ancestorInheritedElementForWidgetOfExactType'.
: context.ancestorInheritedElementForWidgetOfExactType(type)?.widget
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FAILURE: Build failed with an exception.
* Where:
Script 'C:\src\flutter\packages\flutter_tools\gradle\flutter.gradle' line: 991
* What went wrong:
Execution failed for task ':app:compileFlutterBuildDebug'.
> Process 'command 'C:\src\flutter\bin\flutter.bat'' finished with non-zero exit value 1
* 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
BU�LD FAILED in 2m 0s
Exception: Gradle task assembleDebug failed with exit code 1
It looks like you're using the version 2.0.1 of the Provider Library.
This version isn't compatible with the newest versions of Flutter, since the inheritFromWidgetOfExactType was deprecated in Flutter 1.12
You have two choices here, either downgrade the version of Flutter you're using to be below 1.12, or upgrade your Provider import to a newer one (I strongly recommend you to pick the second option !)
You should try this.
Yesterday I Just restarted my pc and got this issue. I tried to search for the solution to this problem but nothing works in my case.
Solution
Just delete your flutter folder (Flutter Source) and then reinstall it. Your problem will solve.

Google Cloud End Point Error: Process exited before success message

I am facing this error when I run the appengineStart task.
print of the error
The error says: “com.google.cloud.tools.appengine.cloudsdk.internal.process.ProcessRunnerException: Process exited before success message”
I searched on Google, but wasn’t able to find a solution.
Here is the full error log:
10:33:08: Executing task 'appengineStart'...
Executing tasks: [appengineStart]
Configuration on demand is an incubating feature.
Gradle now uses separate output directories for each JVM language, but this
build assumes a single directory for all classes from a source set. This
behaviour has been deprecated and is scheduled to be removed in Gradle 5.0
:backend:compileJava UP-TO-DATE
:backend:processResources NO-SOURCE
:backend:classes UP-TO-DATE
:backend:endpointsDiscoveryDocs UP-TO-DATE
:backend:_zipDiscoveryDocs UP-TO-DATE
:backend:war UP-TO-DATE
:backend:explodeWar UP-TO-DATE
:backend:assemble UP-TO-DATE
:backend:appengineStart
Warning: Google App Engine Java 7 runtime is deprecated.
Warning: See https://cloud.google.com/appengine/docs/deprecations/java7
ago 23, 2018 10:33:24 AM java.util.prefs.WindowsPreferences <init>
ADVERT?NCIA: Could not open/create prefs root node Software\JavaSoft\Prefs
at root 0x80000002. Windows RegCreateKeyEx(...) returned error code 5.
ago 23, 2018 10:33:25 AM
com.google.appengine.tools.development.SystemPropertiesManager
setSystemProperties
INFORMA??ES: Overwriting system property key
'java.util.logging.config.file', value
'C:\Users\igor\AppData\Local\Google\Cloud SDK\google-cloud- `sdk\platform\google_appengine\google\appengine\tools\java\config\sdk\logging.properties' with value 'WEB-INF/logging.properties' from 'C:\Users\igor\ud-exercises\ud867\FinalProject\backend\build\exploded-backend\WEB-INF\appengine-web.xml'`
************************************************
Could not open the requested socket: Address already in use: bind
Try overriding --address and/or --port.
Exception in thread "wait-for-process-exit-and-output-handlers" com.google.cloud.tools.appengine.api.AppEngineException: Non zero exit: 2
at com.google.cloud.tools.appengine.cloudsdk.process.NonZeroExceptionExitListener.onExit(NonZeroExceptionExitListener.java:30)
at com.google.cloud.tools.appengine.cloudsdk.internal.process.DefaultProcessRunner.syncRun(DefaultProcessRunner.java:211)
at com.google.cloud.tools.appengine.cloudsdk.internal.process.DefaultProcessRunner.access$200(DefaultProcessRunner.java:38)
at com.google.cloud.tools.appengine.cloudsdk.internal.process.DefaultProcessRunner$3.run(DefaultProcessRunner.java:223)
:backend:appengineStart FAILED
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':backend:appengineStart'.
>
com.google.cloud.tools.appengine.cloudsdk.internal.process.ProcessRunnerException: Process exited before success message
* Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
* Get more help at https://help.gradle.org
BUILD FAILED in 16s
6 actionable tasks: 1 executed, 5 up-to-date
10:33:26: Task execution finished 'appengineStart'.
Could not open the requested socket: Address already in use: bind indicates that you either previously started a dev server and it didn't exit properly, or you have another process using the same port. You need to kill the offending process (or restart your computer, which has the same effect) or change the port on which your dev server runs. Essentially, add the following to your gradle file, changing the port as necessary:
appengine.run.port = 8888

com.android.ide.common.process.ProcessException: Failed to execute aapt! What can I do?

I’m getting error when I'm trying to run on Android Device! I have no idea what is happening!
What can I do to solve it?
FAILURE: Build failed with an exception.
BUILD FAILED
Total time: 7.791 secs
* What went wrong:
Execution failed for task ':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.
Error: cmd: Command failed with exit code 1 Error output:
C:\tmp\myproj\platforms\android\build\intermediates\res\merged\debug\values\values.xml:373: AAPT: Attribute "theme" already defined with incompatible format.
C:\tmp\myproj\platforms\android\build\intermediates\res\merged\debug\values\values.xml:359: AAPT: Original attribute defined here.
C:\tmp\myproj\platforms\android\build\intermediates\res\merged\debug\values-v26\values-v26.xml:15:21-54: AAPT: No resource found that matches the given name: attr 'android:keyboardNavigationCluster'.
C:\tmp\myproj\platforms\android\build\intermediates\res\merged\debug\values\values.xml:373: error: Attribute "theme" already defined with incompatible format.
C:\tmp\myproj\platforms\android\build\intermediates\res\merged\debug\values\values.xml:359: Original attribute defined here.
C:\tmp\myproj\platforms\android\build\intermediates\res\merged\debug\values-v26\values-v26.xml:15: error: Error: No resource found that matches the given name: attr 'android:keyboardNavigationCluster'.
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':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.
[ERROR] An error occurred while running cordova run android (exit code 1).
Solved
Solved: Re-create the project and add the features again!
just put this code inside build.gradle on the last part
configurations.all {
resolutionStrategy {
force 'com.android.support:support-v4:27.1.0'
}
}
If you update the v4 v7 version to 26.0.0,
you also should change the CompileSdkVersion and BuildToolsVersion
to 26.0.0
Strange cause of this error for me was that I was missing a drawable from a layout. I copied the layout from another project and forgot to copy the drawable before running my project.
Also, check that the activity names in your layouts do not have spaces.
this problem comes from the mismatch project environment and executing platform environment.
try to create a new project and run in the same platform environment.
if its run, copy-paste old project src files.
$ ionic start
$ cd "project_name"
$ ionic cordova platform add android
$ ionic cordova run android
copy-paste old project src files

Categories

Resources