Apk with my keystore - Play Store

Please read the posts / notes I sent you:

I have started the process again because it kept giving me an error, maybe there is something I don’t do well. From this website: I download the 2 files 4.0 and 4.1, correct? ‪AppToMarket‬‏ - Google Drive

I give up friend … it doesn’t work for me in any way … Thanks for your help.

I doubt it will work as you are using java version 14

Help me, friend. What version of Java do I have to download? I think I downloaded the last one from the oracle website

I myself still use Java version 8

1 Like

Hi Boban, excuse me, I couldn’t continue answering here in the community because I can only send 20 messages a day. For what I have been testing today before writing you another thousand and one things and nothing …

It turns out that he had 2 different java on the pc, one hidden and one not. So I have only java 8. Now in AppToMarket it decompiles well, but in step three I get this error:

29may2020_1248.27: I: Checking whether resources has changed…
29may2020_1248.27: I: Building resources…
29may2020_1248.28: ERROR: The new .apk was not generated due to errors

I have also tried ApkSigner and I get this error:

image

Post the Manifest (copy & paste) you got from AppToMarket 4.1:

I copy the AppToMarket manifest to you. I tell you that it is the manifesto of a test apk, but it happens to me with everyone, since I have tried with everyone.

<?xml version="1.0" encoding="utf-8" standalone="no"?>
<!-- ****
     **** Generated by AppToMaret on Fri May 29 22:47:29 CEST 2020
     **** If you wish, you can update this file to your needs.
     **** If updating, it has to be done prior to clicking 'Create New .apk' button AppToMarket
     **** However, please make sure that your updates WILL NOT break the functionality.
     **** For example, removing permissions, could cause runtime exceptions
     ****
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
android:versionCode="4"
android:versionName="1" android:compileSdkVersion="28" android:compileSdkVersionCodename="9" 
android:installLocation="auto" package="prueba2705" platformBuildVersionCode="28" platformBuildVersionName="9">
    <uses-permission android:name="android.permission.INTERNET"/>
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
    <uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
    <supports-screens android:resizeable="false" android:smallScreens="true" android:normalScreens="true" android:largeScreens="true"  android:xlargeScreens="true" android:anyDensity="true" />
<application android:debuggable="false" android:icon="@mipmap/ic_launcher" android:label="prueba2705" android:name="com.google.appinventor.components.runtime.multidex.MultiDexApplication" android:networkSecurityConfig="@xml/network_security_config" android:roundIcon="@mipmap/ic_launcher" android:supportsRtl="false" android:theme="@style/AppTheme" android:usesCleartextTraffic="true">
        <activity android:screenOrientation="behind" android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|screenSize|smallestScreenSize" android:name="io.kodular.veronica_hospy.prueba2705.Screen2" android:theme="@style/AppTheme.NoActionBar" android:windowSoftInputMode="stateHidden">
            <intent-filter>
                <action android:name="android.intent.action.MAIN"/>
            </intent-filter>
        </activity>
        <activity android:screenOrientation="behind" android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|screenSize|smallestScreenSize" android:name="io.kodular.veronica_hospy.prueba2705.Screen1" android:theme="@style/AppTheme.NoActionBar" android:windowSoftInputMode="stateHidden">
            <intent-filter>
                <action android:name="android.intent.action.MAIN"/>
                <category android:name="android.intent.category.LAUNCHER"/>
            </intent-filter>
        </activity>
        <meta-data android:name="io.kodular.app.VERSION" android:value="1.4C.4-Eagle"/>
        <provider android:authorities="prueba2705.provider" android:exported="false" android:grantUriPermissions="true" android:name="android.support.v4.content.FileProvider">
            <meta-data android:name="android.support.FILE_PROVIDER_PATHS" android:resource="@xml/provider_paths"/>
        </provider>
        <uses-library android:name="org.apache.http.legacy" android:required="false"/>
        <meta-data android:name="Kodular_RCWTFYP-BYDNKHMWRIT-DNLATT" android:value="_61ae674b9ca3025686d67dd8fdb90969.55a92d55c9c879f7930fa57f608cfeb7-1590576264~VPstLvQEmkEliOgx92g9z4qS74kltCXzpCHBBPYWWuEyIUXfkoiaI29OIWJFHGyi_"/>
    </application>
</manifest>

29may2020_2350.03: writing new .apk file:C:\tools\AppToMarket_v32\myApks\prueba2705_new.apk

29may2020_2350.03: I: Using Apktool 2.4.1

29may2020_2350.03: I: Checking whether resources has changed…

29may2020_2350.03: I: Building resources…

29may2020_2350.03: ERROR: The new .apk was not generated due to errors

See here:

should be:
package="io.kodular.pruba2705.appName" (default: io.kodular.email.appName)
In my case (testApp.apk): io.kodular.bodymindpower.testApp

or if you changed the packageName:
package="com.pruba2705.appName"

Here is a new (empty) testApp (APK) with only 1 screen and 1 button (without changing the packageName): testApp.apk (5.0 MB)

Try to decompile and recompile with A2M.

The Manifest of my testApp:

Manifest <?xml version="1.0" encoding="utf-8" standalone="no"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
android:versionCode="1"
android:versionName="1.0" android:compileSdkVersion="28" android:compileSdkVersionCodename="9" 
android:installLocation="auto" package="io.kodular.bodymindpower.testApp" platformBuildVersionCode="28" platformBuildVersionName="9">
    <uses-permission android:name="android.permission.INTERNET"/>
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
    <uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
    <supports-screens android:resizeable="false" android:smallScreens="true" android:normalScreens="true" android:largeScreens="true"  android:xlargeScreens="true" android:anyDensity="true" />
<application android:debuggable="false" android:icon="@mipmap/ic_launcher" android:label="testApp" android:name="com.google.appinventor.components.runtime.multidex.MultiDexApplication" android:networkSecurityConfig="@xml/network_security_config" android:roundIcon="@mipmap/ic_launcher" android:supportsRtl="false" android:theme="@style/AppTheme" android:usesCleartextTraffic="true">
        <activity android:screenOrientation="behind" android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|screenSize|smallestScreenSize" android:name="io.kodular.bodymindpower.testApp.Screen1" android:theme="@style/AppTheme.NoActionBar" android:windowSoftInputMode="stateHidden">
            <intent-filter>
                <action android:name="android.intent.action.MAIN"/>
                <category android:name="android.intent.category.LAUNCHER"/>
            </intent-filter>
        </activity>
        <meta-data android:name="io.kodular.app.VERSION" android:value="1.4C.4-Eagle"/>
        <provider android:authorities="io.kodular.bodymindpower.testApp.provider" android:exported="false" android:grantUriPermissions="true" android:name="android.support.v4.content.FileProvider">
            <meta-data android:name="android.support.FILE_PROVIDER_PATHS" android:resource="@xml/provider_paths"/>
        </provider>
        <uses-library android:name="org.apache.http.legacy" android:required="false"/>
        <meta-data android:name="Kodular_RCWTFYP-BYDNKHMWRIT-DNLATT" android:value="_231da41032e92048213949a6c9bd987f.231da41032e92048213949a6c9bd987f-1590820286~YrBTUmYQ3sN1iwCiCNc0tPVI0qZfMFbcsGcPhEmZ5fca5DVT7aFzAmHDDmUtcIed_"/>
    </application>
</manifest>

Hello, I have tried with the testApp that you have sent me and I get the same error:

30may2020_1239.16: I: Using Apktool 2.4.1
30may2020_1239.16: I: Copying C:\Users\laura sala\AppToMarket_v40\temp_myDecompiles classes.dex file…
30may2020_1239.17: I: Copying C:\Users\laura sala\AppToMarket_v40\temp_myDecompiles classes2.dex file…
30may2020_1239.17: I: Checking whether resources has changed…
30may2020_1239.17: I: Building resources…
30may2020_1239.17: ERROR: The new .apk was not generated due to errors

Manifest testApp:

<?xml version="1.0" encoding="utf-8" standalone="no"?>
<!-- ****
     **** Generated by AppToMaret on Sat May 30 12:39:13 CEST 2020
     **** If you wish, you can update this file to your needs.
     **** If updating, it has to be done prior to clicking 'Create New .apk' button AppToMarket
     **** However, please make sure that your updates WILL NOT break the functionality.
     **** For example, removing permissions, could cause runtime exceptions
     ****
-->
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
android:versionCode="1"
android:versionName="1.0" android:compileSdkVersion="28" android:compileSdkVersionCodename="9" 
android:installLocation="auto" package="io.kodular.bodymindpower.testApp" platformBuildVersionCode="28" platformBuildVersionName="9">
    <uses-permission android:name="android.permission.INTERNET"/>
    <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE"/>
    <uses-permission android:name="android.permission.ACCESS_WIFI_STATE"/>
    <supports-screens android:resizeable="false" android:smallScreens="true" android:normalScreens="true" android:largeScreens="true"  android:xlargeScreens="true" android:anyDensity="true" />
<application android:debuggable="false" android:icon="@mipmap/ic_launcher" android:label="testApp" android:name="com.google.appinventor.components.runtime.multidex.MultiDexApplication" android:networkSecurityConfig="@xml/network_security_config" android:roundIcon="@mipmap/ic_launcher" android:supportsRtl="false" android:theme="@style/AppTheme" android:usesCleartextTraffic="true">
        <activity android:screenOrientation="behind" android:configChanges="keyboard|keyboardHidden|orientation|screenLayout|screenSize|smallestScreenSize" android:name="io.kodular.bodymindpower.testApp.Screen1" android:theme="@style/AppTheme.NoActionBar" android:windowSoftInputMode="stateHidden">
            <intent-filter>
                <action android:name="android.intent.action.MAIN"/>
                <category android:name="android.intent.category.LAUNCHER"/>
            </intent-filter>
        </activity>
        <meta-data android:name="io.kodular.app.VERSION" android:value="1.4C.4-Eagle"/>
        <provider android:authorities="io.kodular.bodymindpower.testApp.provider" android:exported="false" android:grantUriPermissions="true" android:name="android.support.v4.content.FileProvider">
            <meta-data android:name="android.support.FILE_PROVIDER_PATHS" android:resource="@xml/provider_paths"/>
        </provider>
        <uses-library android:name="org.apache.http.legacy" android:required="false"/>
        <meta-data android:name="Kodular_RCWTFYP-BYDNKHMWRIT-DNLATT" android:value="_231da41032e92048213949a6c9bd987f.231da41032e92048213949a6c9bd987f-1590820286~YrBTUmYQ3sN1iwCiCNc0tPVI0qZfMFbcsGcPhEmZ5fca5DVT7aFzAmHDDmUtcIed_"/>
    </application>
</manifest>

Possibly there is something wrong in the variables of my pc?

Have you aligned the app? :thinking:

Hi. How do i align the app? I am in AppToMarket and already in step 3 it gives me an error.
In addition, I have also tried with ApkSigner and in the first step of aligning it gives me an error (there is the photo of the error 5 comments above this discussion). Please help me. Possibly there are some of the variables of my pc that are wrong? I do not have many more options …

Hi. I have read that possibly the problem comes from the system variable (path), I copy the one that I have set in my computer:
C: \ Program Files (x86) \ Common Files \ Oracle \ Java \ javapath;% USERPROFILE% \ AppData \ Local \ Microsoft \ WindowsApps;% JAVA_HOME% \ bin

It is right?

Also, for testing I have added the JAVA_HOME variable:
C: \ Program Files \ Java \ jdk1.8.0_251

But it continues giving the same error … It seems to me that I am going to give up … I have been almost 2 weeks with the same and without advancing. Thanks in advance everyone

1 Like

JAVA_HOME is correct :

image

I think the Path is not correct:
image

please tell me the correct path

Under System Variables, select Path system variable, Click Edit and insert %JAVA_HOME%\bin

To see if path is set correctly open a command prompt window, type javac -version . If path is correct then you will see the version of java that you use otherwise you will see “javac is not recognized as an internal or external command…”